Permalink
Browse files

Learn the api.

  • Loading branch information...
1 parent 4d7f41b commit 15afd49469340ef8ed36016f3bcd166309d9ae9b @dmitriy-kiriyenko committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/soprano/unicorn.rb
View
@@ -1,6 +1,6 @@
Capistrano::Configuration.instance(:must_exist).load do
def unicorn_conf
- fetch(:unicorn_conf, "#{current_path}/config/unicorn.rb")
+ fetch(:unicorn_conf, "#{release_path}/config/unicorn.rb")
end
def unicorn_bin
@@ -24,7 +24,7 @@ def unicorn_pid
desc "Restart application."
task :restart, :roles => :app do
- run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -HUP `cat #{unicorn_pid}`; else cd #{current_path} && #{unicorn_bin} -c #{unicorn_conf} -E #{rails_env} -D; fi"
+ run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -HUP `cat #{unicorn_pid}`; else cd #{release_path} && #{unicorn_bin} -c #{unicorn_conf} -E #{rails_env} -D; fi"
end
end

0 comments on commit 15afd49

Please sign in to comment.