/config/deploy.rb

https://bitbucket.org/codegears/server-api · Ruby · 29 lines · 22 code · 7 blank · 0 comment · 0 complexity · c9c8844af53d8606fbf73e571af5ff23 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/redis"
  7. load "config/recipes/rbenv"
  8. load "config/recipes/check"
  9. require "sidekiq/capistrano"
  10. load "config/recipes/clockwork"
  11. server "74.207.231.153", :web, :app, :db, primary: true
  12. set :user, "deployer"
  13. set :application, "codegears"
  14. set :deploy_to, "/home/#{user}/apps/#{application}"
  15. set :deploy_via, :remote_cache
  16. set :use_sudo, false
  17. set :scm, "git"
  18. set :repository, "git@bitbucket.org:codegears/server-api.git"
  19. set :branch, "master"
  20. default_run_options[:pty] = true
  21. ssh_options[:forward_agent] = true
  22. after "deploy", "deploy:cleanup" # keep only the last 5 releases