Sha256: e66fc6669366b45fc988cb9440a49418fbb21842780c7bc439b3986697689e6a
Contents?: true
Size: 757 Bytes
Versions: 5
Compression:
Stored size: 757 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :juggernaut do desc "After update_code you want to symlink the juggernaut.yml file into place" task :symlink_configs, :roles => :app, :except => {:no_release => true} do run <<-CMD cd #{latest_release} && ln -nfs #{shared_path}/config/juggernaut.yml #{latest_release}/config/juggernaut.yml && ln -nfs #{shared_path}/config/juggernaut_hosts.yml #{latest_release}/config/juggernaut_hosts.yml CMD end [:start,:stop,:restart].each do |op| desc "#{op} juggernaut server" task op, :roles => :app, :except => {:no_release => true} do sudo "/usr/bin/monit #{op} all -g juggernaut_#{application}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems