PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/stakoov/vianafast
Ruby | 26 lines | 21 code | 5 blank | 0 comment | 0 complexity | 51f243ccda5ebf65c539f0cbb63686bb MD5 | raw file
  1. require "bundler/capistrano"
  2. load "config/recipes/base"
  3. load "config/recipes/nginx"
  4. load "config/recipes/unicorn"
  5. load "config/recipes/postgresql"
  6. load "config/recipes/nodejs"
  7. load "config/recipes/rbenv"
  8. load "config/recipes/check"
  9. server "198.211.118.184", :web, :app, :db, primary: true
  10. set :port, 25001
  11. set :user, "stakoov"
  12. set :application, "vianafast"
  13. set :deploy_to, "/home/#{user}/apps/#{application}"
  14. set :deploy_via, :remote_cache
  15. set :use_sudo, false
  16. set :scm, "git"
  17. set :repository, "git@bitbucket.org:stakoov/#{application}.git"
  18. set :branch, "master"
  19. default_run_options[:pty] = true
  20. ssh_options[:forward_agent] = true
  21. after "deploy", "deploy:cleanup" # keep only the last 5 releases