SHARE
TWEET

production.rb

a guest Sep 25th, 2017 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  6. # server "example.com", user: "deploy", roles: %w{app db web}, my_property: :my_value
  7. # server "example.com", user: "deploy", roles: %w{app web}, other_property: :other_value
  8. # server "db.example.com", user: "deploy", roles: %w{db}
  9.  
  10.  
  11.  
  12. # role-based syntax
  13. # ==================
  14.  
  15. # Defines a role with one or multiple servers. The primary server in each
  16. # group is considered to be the first unless any hosts have the primary
  17. # property set. Specify the username and a domain or IP for the server.
  18. # Don't use `:all`, it's a meta role.
  19.  
  20. # role :app, %w{deploy@example.com}, my_property: :my_value
  21. # role :web, %w{user1@primary.com user2@additional.com}, other_property: :other_value
  22. # role :db,  %w{deploy@example.com}
  23. role :app, %w{deploy@MYWEBSITE}
  24. role :web, %w{deploy@MYWEBSITE}
  25. role :db,  %w{deploy@MYWEBSITE}
  26.  
  27.  
  28. # Configuration
  29. # =============
  30. # You can set any configuration variable like in config/deploy.rb
  31. # These variables are then only loaded and set in this stage.
  32. # For available Capistrano configuration variables see the documentation page.
  33. # http://capistranorb.com/documentation/getting-started/configuration/
  34. # Feel free to add new variables to customise your setup.
  35.  
  36.  
  37.  
  38. # Custom SSH Options
  39. # ==================
  40. # You may pass any option but keep in mind that net/ssh understands a
  41. # limited set of options, consult the Net::SSH documentation.
  42. # http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start
  43. #
  44. # Global options
  45. # --------------
  46. #  set :ssh_options, {
  47. #    keys: %w(/home/rlisowski/.ssh/id_rsa),
  48. #    forward_agent: false,
  49. #    auth_methods: %w(password)
  50. #  }
  51. #
  52. # The server-based syntax can be used to override options:
  53. # ------------------------------------
  54. # server "example.com",
  55. #   user: "user_name",
  56. #   roles: %w{web app},
  57. #   ssh_options: {
  58. #     user: "user_name", # overrides user setting above
  59. #     keys: %w(/home/user_name/.ssh/id_rsa),
  60. #     forward_agent: false,
  61. #     auth_methods: %w(publickey password)
  62. #     # password: "please use keys"
  63. #   }
  64. set :ssh_options, {
  65.   keys: %w(PATH_TO_SSH_KEY),
  66.   forward_agent: true,
  67.   auth_methods: %w(publickey)
  68. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top