-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sample.rb
31 lines (30 loc) · 1.13 KB
/
config.sample.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
set :bind, '0.0.0.0'
set :port, 4567
APPS = {
'apps_abc1' => {
'envs' => {
'staging' => {
'deploy' => 'cd ~/proj/apps_abc1 && mina stage=staging deploy',
'start' => 'cd ~/proj/apps_abc1 && mina stage=staging unicorn:start',
'stop' => 'cd ~/proj/apps_abc1 && mina stage=staging unicorn:stop',
'restart' => 'cd ~/proj/apps_abc1 && mina stage=staging unicorn:restart',
},
'production' => {
'deploy' => 'cd ~/proj/apps_abc1 && mina stage=production deploy',
'start' => 'cd ~/proj/apps_abc1 && mina stage=production unicorn:start',
'stop' => 'cd ~/proj/apps_abc1 && mina stage=production unicorn:stop',
'restart' => 'cd ~/proj/apps_abc1 && mina stage=production unicorn:restart',
},
},
},
'apps_xyz2' => {
'envs' => {
'production' => {
'deploy' => 'cd ~/proj/apps_xyz2 && cap production deploy',
'start' => 'cd ~/proj/apps_xyz2 && cap production unicorn:start',
'stop' => 'cd ~/proj/apps_xyz2 && cap production unicorn:stop',
'restart' => 'cd ~/proj/apps_xyz2 && cap production unicorn:restart',
},
},
},
}