deploy.rb revision da1ac079235ade3dcd05d6c3658e3144bd74710d
require 'bundler/capistrano'
hostname = 'staging.ontohub.org'
set :application, 'ontohub'
set :scm, :git
set :repository, "git@github.com:#{application}/#{application}.git"
set :branch, "new-model"
set :deploy_to, "/srv/http/#{hostname}"
set :user, application
set :use_sudo, false
set :deploy_via, :remote_cache
set :god_port, 17166
# RVM
require "rvm/capistrano"
set :rvm_type, :system
set :rvm_ruby_string, "ruby-1.9.3@#{application}"
role :app, hostname
role :web, hostname
role :db, hostname, :primary => true
def rake_command(cmd)
run "cd #{current_path} && bundle exec rake #{cmd}", :env => { :RAILS_ENV => rails_env }
end
Dir[File.dirname(__FILE__) + "/deploy/*.rb"].each{|f| load f }