-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathrender.yaml
More file actions
22 lines (22 loc) · 941 Bytes
/
render.yaml
File metadata and controls
22 lines (22 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
services:
- type: web
name: my-app-name # the name of this service, you should change this
runtime: docker # use Dockerfile for deployment
plan: free # make sure to set this to free or you'll get billed $$$
dockerfilePath: ./Dockerfile
envVars: # this section sets some ENV variables needed by Render for deployment
- key: SECRET_KEY_BASE
generateValue: true
- key: DATABASE_URL
sync: false
# Memory optimization for Render free tier (512MB RAM)
- key: WEB_CONCURRENCY
value: "1" # Single worker to fit in 512MB
- key: RAILS_MAX_THREADS
value: "3" # Cap threads to reduce memory
- key: MALLOC_ARENA_MAX
value: "2" # Reduce memory fragmentation
- key: SOLID_QUEUE_IN_PUMA
value: "true" # Run background jobs in same process
- key: BUNDLE_WITHOUT
value: "development:test" # Don't install dev/test gems in production