Guest User

Untitled

a guest
Mar 7th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. !!# At the top of my deploy.rb
  2. yamled = YAML.load_file(File.join(File.dirname(__FILE__), "deploy.yml"))
  3.  
  4. set :application, yamled["app"]
  5. set :repository, yamled["rep"]
  6.  
  7. role :app, yamled["app"]
  8. role :web, yamled["app"]
  9. role :db, yamled["app"], :primary => true
  10.  
  11. set :deploy_to, yamled["apppath"]
  12. set :deploy_via, :export
  13. set :use_sudo, false
  14.  
  15. set :user, yamled["appuser"]
  16. set :password, yamled["apppass"]
  17. set :scm_username, yamled["repuser"]
  18. set :scm_password, yamled["reppass"]
  19.  
  20. !!# In config/deploy.yml
  21. app: # Your application's web address
  22. apppath: # Your application's path on the application server
  23. appuser: # Your username on the application server
  24. apppass: # Your password on the application server
  25.  
  26. rep: # Your svn repository
  27. repuser: # Your username on the svn repository
  28. reppass: # Your password on the svn repository
Add Comment
Please, Sign In to add comment