Permalink
Browse files

Fix deploy.rb

  • Loading branch information...
1 parent 680285a commit f74b5bd364b5c52d2e71771855bd4e1595544b5b @Mehonoshin committed May 20, 2012
Showing with 2 additions and 2 deletions.
  1. +0 −1 .gitignore
  2. +2 −1 config/deploy.rb
View
@@ -12,7 +12,6 @@ test/tmp
test/version_tmp
tmp
config/settings/twitter.yml
-
# YARD artifacts
.yardoc
_yardoc
View
@@ -35,14 +35,15 @@
set :unicorn_pid, "#{deploy_to}/shared/pids/unicorn.pid"
task :copy_settings_config, roles => :app do
+ run "mkdir #{deploy_to}/current/config/settings"
run "cp #{deploy_to}/shared/twitter.yml #{deploy_to}/current/config/settings/twitter.yml"
end
before "deploy:finalize_update", :copy_settings_config
# Unicorn control tasks
namespace :deploy do
task :restart do
- run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -QUIT `cat #{unicorn_pid}`; else cd #{deploy_to}/current && bundle exec unicorn -Dc #{unicorn_conf} -E #{rails_env}; fi"
+ run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -USR2 `cat #{unicorn_pid}` && cd #{deploy_to}/current && bundle exec unicorn -Dc #{unicorn_conf} -E #{rails_env}; else cd #{deploy_to}/current && bundle exec unicorn -Dc #{unicorn_conf} -E #{rails_env}; fi"
end
task :start do
run "cd #{deploy_to}/current && bundle exec unicorn -c #{unicorn_conf} -E #{rails_env} -D"

0 comments on commit f74b5bd

Please sign in to comment.