deploy.rb revision 9fadd0fcf5941734ebb5fbe78c74e90e3124a626
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"
run "cd #{current_path} && RAILS_ENV=production rake resque:stop"
run "cd #{current_path} && RAILS_ENV=production rake god:restart"
end
end