-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
31 lines (30 loc) · 979 Bytes
/
render.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
databases:
- name: ruby3-rails8-flowbite-render-db
plan: free
services:
- name: ruby3-rails8-flowbite-render-app
plan: free
type: web
runtime: ruby
buildCommand: "./bin/render-build.sh"
# preDeployCommand: "bundle exec rails db:migrate" # preDeployCommand only available on paid instance types
startCommand: "bundle exec rails server"
healthCheckPath: /up
autoDeploy: false
envVars:
- key: DATABASE_URL
fromDatabase:
name: ruby3-rails8-flowbite-render-db
property: connectionString
# Render may add a suffix to the database name
# Ref: https://render.com/docs/blueprint-spec#example-blueprint-file
- key: DATABASE_NAME
fromDatabase:
name: ruby3-rails8-flowbite-render-db
property: database
- key: RAILS_ENV
value: production
- key: RAILS_MASTER_KEY
sync: false
- key: WEB_CONCURRENCY
value: 2 # sensible default