Created
September 2, 2012 11:27
-
-
Save NikoRoberts/3597275 to your computer and use it in GitHub Desktop.
production.rb - Capistrano multi stage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set this to the version of RVM-managed Ruby on the remote server | |
# Run `rvm list` to get the exact version string | |
set :rvm_ruby_string, 'ruby-1.9.3-p194' | |
set :domain, '198.101.247.93' | |
role :web, domain # Your HTTP server, Apache/etc | |
role :app, domain # This may be the same as your `Web` server | |
role :db, domain, :primary => true # This is where Rails migrations will run | |
# This is the user capistrano will use for SSH, | |
# and thus, who will own the files it deploys | |
set :user, 'deployer' | |
set :group, 'deployer' | |
set :deploy_to, "/var/www/#{application.downcase}" | |
set :rails_env, 'production' | |
# By default, bundler will install all gems unless you tell it to skip specific environments | |
set :bundle_without, [:test, :development, :staging] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment