-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
56 lines (47 loc) · 1.63 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This file was generated by Render's heroku-import Heroku CLI plugin
# https://www.npmjs.com/package/@renderinc/heroku-import
# Schema documented at https://render.com/docs/yaml-spec
services:
- &SHARED_WEB_SETTINGS
name: lexicon-staging
type: web
plan: free
env: ruby
numInstances: 1
region: ohio
rootDir: 'server'
buildCommand: 'bundle install; bundle exec rake assets:precompile assets:clean db:migrate;'
startCommand: 'bundle exec puma'
envVars:
- { key: LANG, value: 'en_US.UTF-8' }
- { key: RACK_ENV, value: 'production' }
- { key: RAILS_ENV, value: 'production' }
- { key: RAILS_SERVE_STATIC_FILES, value: 'enabled' }
- { key: RAILS_LOG_TO_STDOUT, value: 'enabled' }
- { key: SECRET_KEY_BASE, generateValue: true }
- { key: JWT_SECRET, generateValue: true }
- key: DATABASE_URL
fromDatabase:
name: lexicon-staging-db
property: connectionString
- <<: *SHARED_WEB_SETTINGS
name: lexicon-production
envVars:
- { key: LANG, value: 'en_US.UTF-8' }
- { key: RACK_ENV, value: 'production' }
- { key: RAILS_ENV, value: 'production' }
- { key: RAILS_SERVE_STATIC_FILES, value: 'enabled' }
- { key: RAILS_LOG_TO_STDOUT, value: 'enabled' }
- { key: SECRET_KEY_BASE, generateValue: true }
- { key: JWT_SECRET, generateValue: true }
- key: DATABASE_URL
fromDatabase:
name: lexicon-production-db
property: connectionString
databases:
- name: lexicon-staging-db
region: ohio
plan: starter
- name: lexicon-production-db
region: ohio
plan: starter