deploy.rb revision 234a52ce997ea67bbf347044e7c4e9c0f5317b34
require 'bundler/capistrano'
hostname = 'ontohub.org'
set :application, 'ontohub'
set :scm, :git
set :repository, "git@github.com:#{application}/#{application}.git"
set :branch, "master"
set :deploy_to, "/srv/http/#{hostname}"
set :shared_children, %w( public/uploads log tmp/pids )
set :user, 'ontohub'
set :use_sudo, false
set :deploy_via, :remote_cache
# 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 }