/config/deploy.rb
Ruby | 36 lines | 25 code | 6 blank | 5 comment | 0 complexity | 7fd91f22d00d9c287151d88f3f41a96e MD5 | raw file
- require 'capistrano/ext/multistage'
- require "bundler/capistrano"
- require "rvm/capistrano"
- set :application, "gitlab"
- set :repository, "git@bitbucket.org:paulopatto/gitlab.git"
- set :scm, :git
- # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
- set :rvm_type, :system
- set :user, 'rails'
- set :use_sudo, false
- set :stages, %w(staging production test)
- set :default_stage, 'production'
- set :deploy_to, "/home/#{user}/apps/#{application}"
- set :deploy_via, :remote_cache
- set :deploy_env, 'production'
- set :keep_releases, 4
- default_run_options[:pty] = true
- ssh_options[:forward_agent] = true
- # if you want to clean up old releases on each deploy uncomment this:
- after "deploy:restart", "deploy:cleanup"
- # if you're still using the script/reaper helper you will need
- # these http://github.com/rails/irs_process_scripts
- # If you are using Passenger mod_rails uncomment this:
- namespace :deploy do
- task :start do ; end
- task :stop do ; end
- task :restart, :roles => :app, :except => { :no_release => true } do
- run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
- end
- end