lib/cap_recipes/tasks/juggernaut/manage.rb in nesquena-cap-recipes-0.3.13 vs lib/cap_recipes/tasks/juggernaut/manage.rb in nesquena-cap-recipes-0.3.15
- old
+ new
@@ -10,26 +10,26 @@
# ===============================================================
# PROCESS MANAGEMENT
# ===============================================================
desc "Starts the juggernaut push server"
- task :start, :roles => :app do
+ task :start, :roles => juggernaut_role do
with_role(juggernaut_role) do
puts "Starting juggernaut push server"
try_sudo "#{base_ruby_path}/bin/juggernaut -c #{juggernaut_config} -d --pid #{juggernaut_pid} --log #{juggernaut_log}"
end
end
desc "Stops the juggernaut push server"
- task :stop, :roles => :app do
+ task :stop, :roles => juggernaut_role do
with_role(juggernaut_role) do
puts "Stopping juggernaut push server"
try_sudo "#{base_ruby_path}/bin/juggernaut -c #{juggernaut_config} -k * --pid #{juggernaut_pid} --log #{juggernaut_log}"
end
end
desc "Restarts the juggernaut push server"
- task :restart, :roles => :app do
+ task :restart, :roles => juggernaut_role do
with_role(juggernaut_role) do
juggernaut.stop
juggernaut.start
end
end