Advertisement
Guest User

capistrano3-deploy-production.rb

a guest
Jan 23rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.76 KB | None | 0 0
  1. # Source for help: https://github.com/m-gagne/ror-azure-demo/blob/master/config/deploy/production.rb
  2. set :stage, :production
  3. set :branch, "master"
  4.  
  5. # Used in case we're deploying multiple versions of the same app side by side. Also provides quick sanity
  6. # checks when looking at filepaths
  7. set :full_app_name, "#{fetch(:application)}"
  8.  
  9.  
  10. # server-based syntax
  11. # ======================
  12. # Defines a single server with a list of roles and multiple properties.
  13. # You can define all roles on a single server, or split them:
  14.  
  15. server 'myappname.website.com', user: 'myappuser', roles: %w{app db web}, primary: true
  16.  
  17. set :deploy_to, "/home/#{fetch(:deploy_user)}/#{fetch(:full_app_name)}"
  18.  
  19. set :rails_env, :production
  20.  
  21. set :unicorn_worker_count, 5
  22.  
  23. set :enable_ssl, false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement