Guest User

Untitled

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