Advertisement
Guest User

Untitled

a guest
Jan 19th, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ##### deploy.rb
  2. require 'capistrano/ext/multistage'
  3. set :stages, ["master", "production"]
  4. set :default_stage, "master"
  5.  
  6.  
  7. set :application, "project"
  8.  
  9. set :scm, :git
  10. set :repository, "git repository"
  11.  
  12. set :user, "ubuntu"
  13.  
  14. default_run_options[:pty] = true
  15. ssh_options[:keys] = %w(path to public.pem)
  16. ssh_options[:verbose] = :debug
  17.  
  18. ssh_options[:forward_agent] = true
  19.  
  20. ##### master.rb
  21. server "IP ADRESS", :app, :web, :db, :primary => true
  22. set :deploy_to, "/var/www-master"
  23. set :branch, 'master'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement