production.rb 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # server-based syntax
  2. # ======================
  3. # Defines a single server with a list of roles and multiple properties.
  4. # You can define all roles on a single server, or split them:
  5. # server "example.com", user: "deploy", roles: %w{app db web}, my_property: :my_value
  6. # server "example.com", user: "deploy", roles: %w{app web}, other_property: :other_value
  7. # server "db.example.com", user: "deploy", roles: %w{db}
  8. # role-based syntax
  9. # ==================
  10. # Defines a role with one or multiple servers. The primary server in each
  11. # group is considered to be the first unless any hosts have the primary
  12. # property set. Specify the username and a domain or IP for the server.
  13. # Don't use `:all`, it's a meta role.
  14. # role :app, %w{deploy@example.com}, my_property: :my_value
  15. # role :web, %w{user1@primary.com user2@additional.com}, other_property: :other_value
  16. # role :db, %w{deploy@example.com}
  17. # Configuration
  18. # =============
  19. # You can set any configuration variable like in config/deploy.rb
  20. # These variables are then only loaded and set in this stage.
  21. # For available Capistrano configuration variables see the documentation page.
  22. # http://capistranorb.com/documentation/getting-started/configuration/
  23. # Feel free to add new variables to customise your setup.
  24. # Custom SSH Options
  25. # ==================
  26. # You may pass any option but keep in mind that net/ssh understands a
  27. # limited set of options, consult the Net::SSH documentation.
  28. # http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start
  29. #
  30. # Global options
  31. # --------------
  32. # set :ssh_options, {
  33. # keys: %w(/home/user_name/.ssh/id_rsa),
  34. # forward_agent: false,
  35. # auth_methods: %w(password)
  36. # }
  37. #
  38. # The server-based syntax can be used to override options:
  39. # ------------------------------------
  40. # server "example.com",
  41. # user: "user_name",
  42. # roles: %w{web app},
  43. # ssh_options: {
  44. # user: "user_name", # overrides user setting above
  45. # keys: %w(/home/user_name/.ssh/id_rsa),
  46. # forward_agent: false,
  47. # auth_methods: %w(publickey password)
  48. # # password: "please use keys"
  49. # }