/config/deploy.rb
Ruby | 26 lines | 21 code | 5 blank | 0 comment | 0 complexity | 51f243ccda5ebf65c539f0cbb63686bb MD5 | raw file
- require "bundler/capistrano"
- load "config/recipes/base"
- load "config/recipes/nginx"
- load "config/recipes/unicorn"
- load "config/recipes/postgresql"
- load "config/recipes/nodejs"
- load "config/recipes/rbenv"
- load "config/recipes/check"
- server "198.211.118.184", :web, :app, :db, primary: true
- set :port, 25001
- set :user, "stakoov"
- set :application, "vianafast"
- set :deploy_to, "/home/#{user}/apps/#{application}"
- set :deploy_via, :remote_cache
- set :use_sudo, false
- set :scm, "git"
- set :repository, "git@bitbucket.org:stakoov/#{application}.git"
- set :branch, "master"
- default_run_options[:pty] = true
- ssh_options[:forward_agent] = true
- after "deploy", "deploy:cleanup" # keep only the last 5 releases