-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
57 lines (55 loc) · 1.7 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
56
57
databases:
- name: spree-db
databaseName: spree
user: spree
services:
- type: web
name: spree-web
runtime: ruby
plan: standard
buildCommand: "./bin/render-build.sh"
preDeployCommand: "bundle exec rails db:migrate && bundle exec rails db:seed"
startCommand: "bundle exec rails server"
envVars:
- key: DATABASE_URL
fromDatabase:
name: spree-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: spree-redis
property: connectionString
- fromGroup: spree-settings
- type: worker
name: spree-worker
runtime: ruby
buildCommand: "./bin/render-build.sh"
startCommand: "bundle exec rake solid_queue:start"
envVars:
- key: DATABASE_URL
fromDatabase:
name: spree-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: spree-redis
property: connectionString
- fromGroup: spree-settings
- type: redis # we only need redis for action cable, in future Rails versions this will be optional
name: spree-redis
ipAllowList: [] # only allow internal connections
envVarGroups:
- name: spree-settings
envVars:
- key: SECRET_KEY_BASE # for production installs comment out this lines
generateValue: true # for production installs comment out this lines
#- key: RAILS_MASTER_KEY # for production installs uncomment this line
# sync: false # for production installs uncomment this line
- key: ADMIN_EMAIL
value: '[email protected]'
- key: ADMIN_PASSWORD
value: 'spree123'
- key: AUTO_ACCEPT
value: 'true'