deploy.rb revision 1ebd4845261030da11ab8550284b8cbea723560f
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 :bundle_without, [:development, :test]
set :user, application
set :use_sudo, false
set :deploy_via, :remote_cache
desc "Restart Application"
run "touch #{current_path}/tmp/restart.txt"
end
end
end
desc "Stop resque"
task :stop do
rake_command 'resque:stop'
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"
config_file = "#{current_path}/config/resque.god"
environment = { :RAILS_ENV => rails_env, :RAILS_ROOT => current_path }
end
desc "Stop god"
task :stop do
run "#{god_command} terminate"
end
end
end