PageRenderTime 35ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/anujan/lolfantasy
Ruby | 26 lines | 20 code | 6 blank | 0 comment | 0 complexity | 7ec8b8cdd923d176db3feaa7864ee2bb 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.46.140.247", :web, :app, :db, primary: true
  10. set :user, "anujan"
  11. set :application, "lolfantasy"
  12. set :deploy_to, "/home/#{user}/apps/#{application}"
  13. set :deploy_via, :remote_cache
  14. set :use_sudo, false
  15. set :scm, "git"
  16. set :repository, "https://anujan@bitbucket.org/anujan/lolfantasy.git"
  17. set :branch, "master"
  18. default_run_options[:pty] = true
  19. ssh_options[:forward_agent] = true
  20. after "deploy", "deploy:cleanup" # keep only the last 5 releases