diff --git a/config/deploy.rb b/config/deploy.rb index d10d1f2..69b425a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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" \ No newline at end of file +namespace :deploy do + desc "Restart Application" + task :restart, :roles => :app do + run "touch #{current_path}/tmp/restart.txt" + end +end \ No newline at end of file