-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathrender.yaml
More file actions
60 lines (52 loc) · 1.46 KB
/
render.yaml
File metadata and controls
60 lines (52 loc) · 1.46 KB
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
58
59
60
# Render deployment configuration for Postcard in Solo Mode
#
# Before deploying:
# 1. Generate a SECRET_KEY_BASE with: rails secret
# 2. Set up AWS S3 and SES following the README instructions
# 3. Sign up for hCaptcha (free) at hcaptcha.com
databases:
- name: postcard-db
databaseName: postcard_production
user: postcard
plan: basic-256mb
services:
- type: web
name: postcard
env: ruby
plan: standard
buildCommand: "bundle install && npm install puppeteer && bundle exec rails assets:precompile && bundle exec rails db:migrate"
startCommand: "bundle exec puma -C config/puma.rb"
numInstances: 1
envVars:
- key: DATABASE_URL
fromDatabase:
name: postcard-db
property: connectionString
- key: RAILS_ENV
value: production
- key: RAILS_SERVE_STATIC_FILES
value: "true"
- key: RAILS_LOG_TO_STDOUT
value: "true"
- key: APP_MODE
value: SOLO
- key: BASE_HOST
value: ''
- key: DEFAULT_EMAIL_FROM
sync: false
- key: DEFAULT_EMAIL_FROM_NAME
value: Postcard
- key: AWS_REGION
sync: false
- key: SECRET_KEY_BASE
generateValue: true
- key: AWS_ACCESS_KEY_ID
sync: false
- key: AWS_SECRET_ACCESS_KEY
sync: false
- key: AWS_STORAGE_BUCKET
sync: false
- key: HCAPTCHA_SITE_KEY
sync: false
- key: HCAPTCHA_SECRET_KEY
sync: false