Skip to content
This repository
tree: 92ca3fe01c
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 37 lines (28 sloc) 0.958 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :rvm_bin_path, "/usr/local/bin"

require 'bundler/capistrano'

set :application, "codecampo.com"
set :repository, "git://github.com/chloerei/code_campo.git"
set :scm, :git
set :branch, "master"

set :user, "webuser"
set :deploy_to, "~/#{application}"
set :use_sudo, false

role :web, "codecampo.com"
role :app, "codecampo.com"
role :db, "codecampo.com", :primary => true

namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end

  task :pipeline_precompile do
    run "cd #{current_path}; bundle exec rake assets:precompile"
  end

  task :copy_config do
    run "cp #{deploy_to}/shared/config/*.yml #{current_path}/config"
  end
end

after "deploy:symlink", "deploy:copy_config", "deploy:pipeline_precompile"
Something went wrong with that request. Please try again.