40 lines
786 B
Markdown
40 lines
786 B
Markdown
# Render
|
|
|
|
## CLI
|
|
No official CLI. Deploy via Git push or API.
|
|
|
|
```bash
|
|
# Git push to connected branch (auto-deploy)
|
|
git push origin main
|
|
|
|
# API trigger
|
|
curl -X POST "https://api.render.com/deploy/srv-XXXXX?key=YOUR_KEY"
|
|
```
|
|
|
|
## Config: render.yaml
|
|
```yaml
|
|
services:
|
|
- type: web
|
|
name: my-app
|
|
runtime: node
|
|
buildCommand: npm install && npm run build
|
|
startCommand: npm start
|
|
envVars:
|
|
- key: NODE_ENV
|
|
value: production
|
|
```
|
|
|
|
## Detection
|
|
- `render.yaml` in repo root
|
|
|
|
## Free Tier
|
|
- 750 free instance hours/mo (Starter)
|
|
- Free PostgreSQL (90 days)
|
|
- Spins down after 15min idle (30s cold start)
|
|
|
|
## Rollback
|
|
Via dashboard: Events → select previous deploy → Manual Deploy
|
|
|
|
## Best For
|
|
Full-stack apps, background workers, cron jobs, managed PostgreSQL
|