This repository has been archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Archfile
110 lines (102 loc) · 2.11 KB
/
Archfile
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
platform: 'ruby-2.2.1'
additional_platforms:
-
type: 'nodejs-6.1.0'
settings:
serve_static_files: true
document_root: 'public'
sleep_inactive_processes: false
main_database: kiwi
processes:
-
name: 'web'
memory: 'standard'
command: 'bundle exec puma -p $PORT -t 5:5'
quantity: 1
public: true
kill_after: 3600
start_monitor:
module: 'httpcheck'
string: 'Successfully started'
timer: 20
-
name: 'worker'
memory: 'standard'
command: 'bundle exec rake jobs:work'
quantity: 1
public: false
kill_after: 3600
start_monitor:
module: 'timer'
string: 'Successfully started'
timer: 5
shared_databases:
-
type: 'postgres'
label: 'Primary DB'
fruit: kiwi
environment_variables:
-
key: 'RAILS_ENV'
value: 'production'
-
key: 'SECRET_KEY'
value: 'changeme'
-
key: 'DEFAULT_PRICING_PLAN'
value: 'Manta'
-
key: 'MAILER_SMTP_AUTHENTICATION'
value: 'plain'
-
key: 'MAILER_SMTP_DOMAIN'
value: '$VDT_DOMAIN'
-
key: 'MAILER_SMTP_HOST'
value: '$VDT_SMTP_HOST'
-
key: 'MAILER_SMTP_USERNAME'
value: '$VDT_SMTP_USERNAME'
-
key: 'MAILER_SMTP_PASSWORD'
value: '$VDT_SMTP_PASSWORD'
-
key: 'MAILER_SMTP_PORT'
value: '$VDT_SMTP_PORT'
-
key: 'MAILGUN_API_KEY'
value: 'notset'
-
key: 'MAILGUN_DOMAIN'
value: 'notset'
persistent_directories:
-
path: 'public/files'
config_files:
-
path: 'config/database.yml'
content: |
$RAILS_ENV:
adapter: postgresql
encoding: unicode
database: $VDT_DB_KIWI_NAME
pool: 5
username: $VDT_DB_KIWI_USER
password: $VDT_DB_KIWI_PASS
host: $VDT_DB_KIWI_HOST
commands:
-
event: 'firstrun'
command: 'bundle exec rake db:schema:load'
success_exit_code: 0
-
event: 'build'
command: 'bundle install --deployment --without development:test'
success_exit_code: 0
-
event: 'build'
command: 'bundle exec rake assets:precompile RAILS_GROUPS=assets'
success_exit_code: 0
build_cache:
- '.bundle'
- 'vendor/bundle'