Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. set :stages, %w(production staging)
  2. set :default_stage, "staging"
  3. require 'capistrano/ext/multistage'
  4.  
  5. set :application, "captest" # TODO
  6. set :repository, "git@bitbucket.org:jy312/captest.git" # TODO
  7. set :scm, :git
  8. set :use_sudo, false
  9.  
  10. ssh_options[:forward_agent] = true
  11. default_run_options[:pty] = true
  12. set :deploy_via, :remote_cache
  13. set :copy_exclude, [".git", ".DS_Store", ".gitignore", ".gitmodules"]
  14. set :git_enable_submodules, 1
  15.  
  16. $ ssh-keygen -f "/home/USERNAME/.ssh/known_hosts" -R 178.X.X.X
  17.  
  18. $ ssh user@178.X.X.X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement