Sha256: d617705bf6546186ddb35688ecb06ba37a0661faba11631a7d94c97e3366daa9
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require "rvm/capistrano" require "bundler/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" end task :smart_asset, :roles => :app do run "cd #{current_path} && bundle exec smart_asset" end end after :'deploy:update_code', :'deploy:symlink_shared' after :'deploy:update', :'deploy:smart_asset'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rwiki-0.2.5 | config/deploy.rb |