deploy-to-temps
Skill949 starsChanged 20 days agoApache-2.0View on GitHub
Deploy applications to the Temps platform with automatic framework detection, Dockerfile generation, and container orchestration. Supports Next.js, Vite, React, Node.js, Python, Go, Rust, Java, and C# applications. Use when the user wants to: (1) Deploy their app to Temps, (2) Set up CI/CD with Temps, (3) Configure deployment settings, (4) Create a Dockerfile for Temps, (5) Deploy a containerized application, (6) Set up automatic deployments from Git. Triggers: "deploy to temps", "temps deployment", "push to temps", "containerize for temps", "temps ci/cd".
- Reads credentials
- Installs packages
- Sends data out
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- start-temps-clusterSkill
- start-tempsSkill
- temps-add-handlerSkill
- temps-add-migration-and-entitySkill
- temps-add-pluginSkill
- temps-design-systemSkill
- temps-split-moduleSkill
- add-custom-domainSkill
- add-error-trackingSkill
- add-node-sdkSkill
- add-react-analyticsSkill
- add-session-recordingSkill
- estimate-temps-savingsSkill
- temps-best-practicesSkill
- temps-cliSkill
- temps-mcp-setupSkill
- temps-platform-setupSkill
- temps-pluginSkill
- tempsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 157
Create temps.json in project root:
- Distinctive: line 187
Create webhooks for custom CI/CD:
- Distinctive: line 242
Check build logs in dashboard
- Very specific: line 243
Verify buildCommand is correct
- Very specific: line 244
Ensure all dependencies are in package.json
- Very specific: line 247
Check PORT environment variable is used
- Distinctive: line 248
Verify health check endpoint works
- Distinctive: line 252
Check resource limits aren't exceeded
- Distinctive: line 253
Verify Docker image builds locally
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy to Temps
Deploy applications to Temps with automatic framework detection and optimized builds.
Supported Frameworks
| Framework | Detection | Build Command |
| Next.js | next.config.* | next build |
| Vite | vite.config.* | vite build |
| Create React App | react-scripts in package.json | react-scripts build |
| Remix | remix.config.* | remix build |
| Express/Node.js | express in dependencies | npm run build (if exists) |
| NestJS | @nestjs/core in dependencies | nest build |
| Python/Flask | requirements.txt + app.py | - |
| Python/Django | manage.py | python manage.py collectstatic |
| Go | go.mod | go build |
| Rust | Cargo.toml | cargo build --release |
Quick Deploy
Via Git Integration
- Connect your Git provider in Temps dashboard
- Select repository and branch
- Temps auto-detects framework and deploys
Via CLI
# Install Temps CLI
npm install -g @temps-sdk/cli
# Login
temps login
# Deploy current directory
temps deploy
# Deploy with specific settings
temps deploy --project my-app --branch mainDockerfile Generation
Temps auto-generates optimized Dockerfiles. For custom needs:
Next.js (Standalone)
FROM node:20-alpine AS base
FROM base AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 3000
ENV PORT=3000
CMD ["node", "server.js"]Node.js (Express/Fastify)
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
ENV NODE_ENV=production
USER node
EXPOSE 3000
CMD ["node", "dist/index.js"]Python (Flask/FastAPI)
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PYTHONUNBUFFERED=1
EXPOSE 8000
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "app:app"]Go
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/main .
EXPOSE 8080
CMD ["./main"]Environment Variables
Configure in Temps dashboard or via CLI:
# Set environment variable
temps env set DATABASE_URL="postgres://..."
# Set from .env file
temps env import .env
# List variables
temps env listBuild Configuration
Create temps.json in project root:
{
"name": "my-app",
"framework": "nextjs",
"buildCommand": "npm run build",
"installCommand": "npm ci",
"outputDirectory": ".next",
"nodeVersion": "20",
"env": {
"NODE_ENV": "production"
}
}Git-based Deployments
Auto-deploy on Push
- In Temps dashboard, enable "Auto-deploy"
- Select branches to auto-deploy
- Each push triggers a new deployment
Preview Deployments
Enable "Preview deployments" to create unique URLs for each PR.
Deploy Hooks
Create webhooks for custom CI/CD:
curl -X POST https://your-temps.com/api/projects/123/deploy \
-H "Authorization: Bearer $TEMPS_DEPLOY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"branch": "main", "commit": "abc123"}'Rollbacks
# List deployments
temps deployments list
# Rollback to specific deployment
temps rollback --deployment-id 456
# Rollback to previous
temps rollback --previousHealth Checks
Configure health checks in temps.json:
{
"healthCheck": {
"path": "/api/health",
"interval": 30,
"timeout": 10,
"unhealthyThreshold": 3
}
}Resource Configuration
{
"resources": {
"cpu": "0.5",
"memory": "512Mi",
"replicas": {
"min": 1,
"max": 5
}
}
}Troubleshooting
Build fails?
- Check build logs in dashboard
- Verify
buildCommandis correct - Ensure all dependencies are in package.json
Container won't start?
- Check
PORTenvironment variable is used - Verify health check endpoint works
- Review container logs
Deployment stuck?
- Check resource limits aren't exceeded
- Verify Docker image builds locally
- Review deployment logs
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

