Sha256: a00583ff1f929ac4e8391cf5771933123d1ae9d7e25d4bcda854ea679a8b196b

Contents?: true

Size: 976 Bytes

Versions: 4

Compression:

Stored size: 976 Bytes

Contents

$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"

set :rvm_type, :system

set :application, "rwiki"
set :deploy_to, "/home/projects/rwiki"

set :scm, :git
set :repository, "git://github.com/lucassus/rwiki.git"

set :domain, "vps_rwiki"
role :app, domain

namespace :deploy do
  desc "Restart the application"
  task :restart, :role => :app do
    run "touch #{current_path}/tmp/restart.txt"
  end

  task :symlink_shared, :roles => :app do
    # Symlink configuration
    run "rm -rf #{release_path}/config/config.yml"
    run "ln -s #{shared_path}/config/config.yml #{release_path}/config/config.yml"

    # Symlink gems
    run "rm -rf #{release_path}/vendor/bundle"
    run "ln -s #{shared_path}/bundle #{release_path}/vendor/bundle"
  end

  task :bundle_install, :roles => :app do
    run "cd #{current_path} && bundle install --path vendor/bundle"
  end
end

after :deploy, :'deploy:symlink_shared'
after :deploy, :'deploy:bundle_install'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rwiki-0.2.4 config/deploy.rb
rwiki-0.2.3 config/deploy.rb
rwiki-0.2.2 config/deploy.rb
rwiki-0.2.1 config/deploy.rb