Don't forget to lycansubscribe
1# TODO: migrate to capistrano3 bundler integration
2require 'bundler/capistrano'
3
4set :bundle_dir, ''
5set :bundle_flags, '--quiet'
6set :bundle_without, []
7
8set :application, "lycan"
9set :repository, "https://tangled.sh/@mackuba.eu/lycan"
10set :scm, :git
11set :keep_releases, 10
12set :use_sudo, false
13set :deploy_to, "/var/www/lycan"
14set :deploy_via, :remote_cache
15set :migrate_env, "RACK_ENV=production"
16set :public_children, []
17set :shared_children, ['log', 'tmp/pids']
18
19server "lycan.feeds.blue", :app, :web, :db, :primary => true
20
21before 'bundle:install', 'deploy:set_bundler_options'
22
23after 'deploy', 'deploy:cleanup'
24after 'deploy:migrations', 'deploy:cleanup'
25
26namespace :deploy do
27 task :restart, :roles => :web do
28 run "touch #{current_path}/tmp/restart.txt"
29 end
30
31 task :set_bundler_options do
32 run "cd #{release_path} && bundle config set --local deployment 'true'"
33 run "cd #{release_path} && bundle config set --local path '#{shared_path}/bundle'"
34 run "cd #{release_path} && bundle config set --local without 'development test'"
35 end
36end