/config/deploy.rb
Ruby | 29 lines | 22 code | 6 blank | 1 comment | 0 complexity | 0e8cd997d7c606c8703eb4e049f5f7ef MD5 | raw file
- require "bundler/capistrano"
- load "config/recipes/base"
- load "config/recipes/nginx"
- load "config/recipes/unicorn"
- load "config/recipes/postgresql"
- load "config/recipes/nodejs"
- load "config/recipes/rbenv"
- load "config/recipes/check"
- load "config/recipes/redis"
- load "config/recipes/sphinx"
- # webbynode server
- server "173.246.41.142", :web, :app, :db, primary: true
- set :user, "deployer"
- set :application, "simtk"
- set :deploy_to, "/home/#{user}/apps/#{application}"
- set :deploy_via, :remote_cache
- set :use_sudo, false
- set :scm, "git"
- set :repository, "git@bitbucket.org:bek/simtk.git"
- set :branch, "master"
- default_run_options[:pty] = true
- ssh_options[:forward_agent] = true
- after "deploy", "deploy:cleanup" # keep only the last 5 releases