Sha256: ffa804d7b261a05b2d272be8044a9b13b8898a0a3cc3aed39c8fb5c31aa65cca
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
Capistrano::Configuration.instance(true).load do namespace :juggernaut do # =============================================================== # PROCESS MANAGEMENT # =============================================================== desc "Starts the juggernaut push server" task :start, :role => :app do puts "Starting juggernaut push server" sudo "juggernaut -c #{juggernaut_config} -d --pid #{juggernaut_pid} --log #{juggernaut_log}" end desc "Stops the juggernaut push server" task :stop, :role => :app do puts "Stopping juggernaut push server" sudo "juggernaut -c #{juggernaut_config} -k * --pid #{juggernaut_pid} --log #{juggernaut_log}" end desc "Restarts the juggernaut push server" task :restart, :role => :app do juggernaut.stop juggernaut.start end # =============================================================== # FILE MANAGEMENT # =============================================================== desc "Copies the shared/config/juggernaut yaml to release/config/" task :copy_config, :role => :app do sudo "cp #{shared_path}/config/juggernaut.yml #{release_path}/config/" end desc "Displays the juggernaut log from the server" task :tail do stream "tail -f #{shared_path}/log/juggernaut.log" end end # =============================================================== # TASK CALLBACKS # =============================================================== after "deploy:update_code", "juggernaut:copy_config" # copy juggernaut.yml on update code after "deploy:restart" , "juggernaut:restart" # restart juggernaut on app restart end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xgamerx-cap-recipes-0.0.1 | lib/cap_recipes/tasks/juggernaut.rb |
xgamerx-cap-recipes-0.0.2 | lib/cap_recipes/tasks/juggernaut.rb |