Skip to content

Commit

Permalink
fix passenger task in deploy.rb to override normal deploy:restart
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-slater committed Aug 31, 2008
1 parent bfcb1f4 commit 4a4e60d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
set :branch, "master"
set :deploy_via, :remote_cache

namespace :passenger do
desc "Restart Application"
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end

after :deploy, "passenger:restart"
namespace :deploy do
desc "Restart Application"
task :restart, :roles => :app do
run "touch #{current_path}/tmp/restart.txt"
end
end

0 comments on commit 4a4e60d

Please sign in to comment.