/config/deploy/scm.rb
Ruby | 18 lines | 10 code | 4 blank | 4 comment | 0 complexity | 16368e7c4cc20856d20db91b586cb411 MD5 | raw file
Possible License(s): MIT, Apache-2.0
- # SCM settings
- # REF: https://bitbucket.org/site/master/issue/4600/cannot-clone-a-public-wiki-over-ssh
- # set :repository, "git@bitbucket.org:travis_dunn/trail-of-secrets.git"
- set :scm, :git
- set :repository, "https://travis_dunn@bitbucket.org/travis_dunn/trail-of-secrets.git"
- set :scm_verbose, true
- set :git_enable_submodules, 1
- set :keep_releases, 2
- set :deploy_via, :remote_cache
- set :deploy_to, "/var/www/#{application}"
- # Git settings for capistrano
- default_run_options[:pty] = true
- ssh_options[:forward_agent] = true
- after "deploy:update", "deploy:cleanup"