PageRenderTime 50ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/bek/simtk
Ruby | 29 lines | 22 code | 6 blank | 1 comment | 0 complexity | 0e8cd997d7c606c8703eb4e049f5f7ef 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. load "config/recipes/redis"
  10. load "config/recipes/sphinx"
  11. # webbynode server
  12. server "173.246.41.142", :web, :app, :db, primary: true
  13. set :user, "deployer"
  14. set :application, "simtk"
  15. set :deploy_to, "/home/#{user}/apps/#{application}"
  16. set :deploy_via, :remote_cache
  17. set :use_sudo, false
  18. set :scm, "git"
  19. set :repository, "git@bitbucket.org:bek/simtk.git"
  20. set :branch, "master"
  21. default_run_options[:pty] = true
  22. ssh_options[:forward_agent] = true
  23. after "deploy", "deploy:cleanup" # keep only the last 5 releases