Skip to content

Instantly share code, notes, and snippets.

@epintos
Created July 11, 2015 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epintos/605581604279ef82055d to your computer and use it in GitHub Desktop.
Save epintos/605581604279ef82055d to your computer and use it in GitHub Desktop.
Ruby on Rails deploy with Capistrano 3
set :stage, :production
role :app, %w(user@url)
role :web, %w(user@url)
role :db, %w(user@url)
set :bundle_binstubs, -> { shared_path.join('bin') }
set :ssh_options, keys: %w(~/.ssh/your-project-production.pem), forward_agent: true
set :nginx_server_name, 'url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment