forked from conversation/babushka-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dw.rb
42 lines (36 loc) · 742 Bytes
/
dw.rb
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
dep 'dw system', :app_user, :key, :env
dep 'dw env vars set', :domain
dep 'dw app', :env, :host, :domain, :app_user, :app_root, :key do
requires [
'existing db'.with(
:username => app_user,
:db_name => "tc_dw_#{env}"
),
'sinatra app'.with(
:app_name => 'dw',
:env => env,
:listen_host => host,
:enable_https => 'no',
:domain => domain,
:username => app_user,
:path => app_root
)
]
end
dep 'dw packages' do
requires [
'postgres',
'curl.lib',
'running.nginx',
'dw common packages'
]
end
dep 'dw dev' do
requires 'dw common packages'
end
dep 'dw common packages' do
requires [
'postgres.bin',
'socat.bin' # for DB tunnelling
]
end