Skip to content

Commit

Permalink
Fix start and stop tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Oct 30, 2009
1 parent f6d0e91 commit 2b2a519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vlad/daemon_kit.rb
Expand Up @@ -10,14 +10,14 @@ class Vlad::DaemonKit
desc "Start the daemon"
remote_task :start_app, :roles => :app do
commands = %w(stop start).map do |command|
"ruby #{latest_release}/bin/#{application} #{c}"
"ruby #{current_path}/bin/#{application} #{command}"
end
run commands.join(' && ')
end

desc "Stop the daemon"
remote_task :stop_app, :roles => :app do
run "ruby #{latest_release}/bin/#{application} stop"
run "ruby #{current_path}/bin/#{application} stop"
end
end
end

0 comments on commit 2b2a519

Please sign in to comment.