deploy.rb revision bef95928f95415d4340567f76230ea65eb1a4655
require 'bundler/capistrano'
# RVM
require 'rvm/capistrano'
set :rvm_ruby_string, '1.9.3@ontohub'
set :application, 'ontohub'
set :repository, "git@github.com:digineo/#{application}.git"
set :user, application
set :use_sudo, false
set :deploy_via, :remote_cache
desc "Restart Application"
run "touch #{current_path}/tmp/restart.txt"
end
desc "Symlink newrelic configuration"
task :symlink_newrelic, :roles => :app, :except => { :no_release => true } do
run "ln -nfs #{shared_path}/config/newrelic.yml #{current_path}/config/"
end
end
end
desc "Stop resque"
task :stop do
rake_command 'resque:stop'
end
end
desc "Reindex all solr models"
rake_command 'sunspot:reindex'
end
end
!capture("#{god_command} status >/dev/null 2>/dev/null || echo 'not running'").start_with?('not running')
end
"cd #{current_path}; bundle exec god"
end
desc "Start god"
end
desc "Stop god"
task :stop do
run "#{god_command} terminate"
end
end
desc "Test if god is running"
end
end