Sabzdish

config/deploy/production.rb

Aug 14th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.49 KB | None | 0 0
  1. # Simple Role Syntax
  2. # ==================
  3. # Supports bulk-adding hosts to roles, the primary server in each group
  4. # is considered to be the first unless any hosts have the primary
  5. # property set.  Don't declare `role :all`, it's a meta role.
  6.  
  7. role :app, %w{IP-адрес сервера}
  8. role :web, %w{IP-адрес сервера}
  9. role :db,  %w{IP-адрес сервера}
  10.  
  11.  
  12. # Extended Server Syntax
  13. # ======================
  14. # This can be used to drop a more detailed server definition into the
  15. # server list. The second argument is a, or duck-types, Hash and is
  16. # used to set extended properties on the server.
  17.  
  18. server 'IP-адрес сервера', user: 'deployer', roles: %w{web app}
  19.  
  20.  
  21. # Custom SSH Options
  22. # ==================
  23. # You may pass any option but keep in mind that net/ssh understands a
  24. # limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
  25. #
  26. # Global options
  27. # --------------
  28. #  set :ssh_options, {
  29. #    keys: %w(/home/rlisowski/.ssh/id_rsa),
  30. #    forward_agent: false,
  31. #    auth_methods: %w(password)
  32. #  }
  33. #
  34. # And/or per server (overrides global)
  35. # ------------------------------------
  36. # server 'example.com',
  37. #   user: 'user_name',
  38. #   roles: %w{web app},
  39. #   ssh_options: {
  40. #     user: 'user_name', # overrides user setting above
  41. #     keys: %w(/home/user_name/.ssh/id_rsa),
  42. #     forward_agent: false,
  43. #     auth_methods: %w(publickey password)
  44. #     # password: 'please use keys'
  45. #   }
Advertisement
Add Comment
Please, Sign In to add comment