deploy.rb revision 1d1e50759ebe381f296f9cfbec532aea24af0874
5ab2ee0b9b7ad3867fcfd2a31fda0790370fbbbdTimo Sirainen$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainenset :repository, "git@github.com:digineo/#{application}.git"
6bca3405636e3ec95724350c3a10d6fcb737782aTimo Sirainen task :restart, :roles => :app, :except => { :no_release => true } do
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen task :symlink_newrelic, :roles => :app, :except => { :no_release => true } do
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen run "ln -nfs #{shared_path}/config/newrelic.yml #{current_path}/config/"
8d80659e504ffb34bb0c6a633184fece35751b18Timo Sirainen run "cd #{current_path} && bundle exec rake #{cmd}", :env => { :RAILS_ENV => rails_env }
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# https://makandracards.com/makandra/1431-resque-+-god-+-capistrano
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen !capture("#{god_command} status >/dev/null 2>/dev/null || echo 'not running'").start_with?('not running')
6bca3405636e3ec95724350c3a10d6fcb737782aTimo Sirainen run "#{god_command} -c config/god/app.rb", :env => environment = { :RAILS_ENV => rails_env }
7d075009a641d88a45940238676883a8eaf1507bTimo Sirainen puts god_is_running ? "God is running" : "God is NOT running"
7d075009a641d88a45940238676883a8eaf1507bTimo Sirainenafter "deploy:update", "deploy:symlink_newrelic"