PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/config/deploy.rb

https://bitbucket.org/dmptool/dmptool2
Ruby | 32 lines | 24 code | 8 blank | 0 comment | 0 complexity | ba0dd19f52fd6b5337d85a8cc17cedcd MD5 | raw file
  1. require 'capistrano/ext/multistage'
  2. require 'capistrano-unicorn'
  3. require 'bundler/capistrano'
  4. set :application, 'dmptool2'
  5. set :repository, 'git@bitbucket.org:dmptool/dmptool2.git'
  6. set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
  7. set :user, 'dmp2'
  8. set :deploy_via, :remote_cache
  9. set :branch, fetch(:branch, 'master')
  10. set :env, fetch(:env, 'development')
  11. set :rails_env, fetch(:renv, 'development')
  12. set :ssh_options, { :forward_agent => true }
  13. set :use_sudo, false
  14. default_run_options[:env] = { 'PATH' => '/dmp2/local/bin/:$PATH'}
  15. default_run_options[:pty] = true
  16. namespace :deploy do
  17. task :symlink_shared do
  18. run "ln -s #{shared_path}/database.yml #{release_path}/config/"
  19. run "ln -s #{shared_path}/shibboleth.yml #{release_path}/config/"
  20. run "ln -s #{shared_path}/ldap.yml #{release_path}/config/"
  21. run "ln -s #{shared_path}/unicorn.rb #{release_path}/config/"
  22. run "ln -s #{shared_path}/uploads #{release_path}/public/uploads"
  23. end
  24. end