Permalink
Browse files

Fixed bluepill recipe.

  • Loading branch information...
antob committed Jan 2, 2012
1 parent f8e3dd5 commit 2569fe0282cfa5255b55b899a8a0b2968884ef1f
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/recipes/bluepill.rb
View
@@ -4,41 +4,41 @@
task :quit, :roles => [:app] do
args = exists?(:options) ? options : ''
begin
- run "bundle exec bluepill stop #{args}"
+ run "cd #{current_path} && bundle exec bluepill stop #{args}"
rescue
puts "Bluepill was unable to finish gracefully all the process"
ensure
- run "bundle exec bluepill quit"
+ run "cd #{current_path} && bundle exec bluepill quit"
end
end
desc "|capistrano-recipes| Load the pill from {your-app}/config/unicorn.pill"
task :init, :roles =>[:app] do
- run "bundle exec bluepill load #{current_path}/config/unicorn.pill"
+ run "cd #{current_path} && bundle exec bluepill load #{current_path}/config/unicorn.pill"
end
desc "|capistrano-recipes| Starts your previous stopped pill"
task :start, :roles =>[:app] do
args = exists?(:options) ? options : ''
- run "bundle exec bluepill start #{args}"
+ run "cd #{current_path} && bundle exec bluepill start #{args}"
end
desc "|capistrano-recipes| Stops some bluepill monitored process"
task :stop, :roles =>[:app] do
args = exists?(:options) ? options : ''
- run "bundle exec bluepill stop #{args}"
+ run "cd #{current_path} && bundle exec bluepill stop #{args}"
end
desc "|capistrano-recipes| Restarts the pill from {your-app}/config/unicorn.pill"
task :restart, :roles =>[:app] do
args = exists?(:options) ? options : ''
- run "bundle exec bluepill restart #{args}"
+ run "cd #{current_path} && bundle exec bluepill restart #{args}"
end
desc "|capistrano-recipes| Prints bluepills monitored processes statuses"
task :status, :roles => [:app] do
args = exists?(:options) ? options : ''
- run "bundle exec bluepill status #{args}"
+ run "cd #{current_path} && bundle exec bluepill status #{args}"
end
end
end

0 comments on commit 2569fe0

Please sign in to comment.