/config/deploy.rb

https://bitbucket.org/anujan/pentakill-university · Ruby · 26 lines · 20 code · 6 blank · 0 comment · 0 complexity · 8f429c30078711e72aaf4cee2a517a70 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, "pentakilluniversity"
  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/pentakill-university.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