-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapfile
More file actions
26 lines (18 loc) · 682 Bytes
/
Copy pathCapfile
File metadata and controls
26 lines (18 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/ruby
load 'deploy'
load 'deploy/assets'
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy' # remove this line to skip loading any of the default tasks
desc "Uploads CHANGELOG.txt to all remote servers."
task :upload_private_config do
upload(File.expand_path('../config/private_config.yml', __FILE__), "#{release_path}/config/private_config.yml")
end
after "deploy:update_code", "upload_private_config"
namespace :deploy do
[:start, :stop, :restart].each do |cmd|
desc "#{cmd.capitalize} the Thin process"
task cmd do
sudo "/etc/init.d/thin #{cmd}", as: "root"
end
end
end