Skip to content

Instantly share code, notes, and snippets.

@nikukyugamer
Created May 22, 2018 08:06
Show Gist options
  • Select an option

  • Save nikukyugamer/2e3f55bebdf70d4bd4c36acb9b15beb2 to your computer and use it in GitHub Desktop.

Select an option

Save nikukyugamer/2e3f55bebdf70d4bd4c36acb9b15beb2 to your computer and use it in GitHub Desktop.
config/deploy/development.rb
set :stage, :development
set :branch, :development
set :deploy_to, '/opt/FOOBAR'
set :rails_env, 'development'
server 'SEVER_ADDRESS(NAME)', user: 'USERNAME', roles: %w{web app db}
set :ssh_options, {
keys: [File.expand_path('USER_KEY')]
}
set :unicorn_pid, "#{shared_path}/tmp/pids/unicorn.development.pid"
set :unicorn_config_path, "#{release_path}/config/unicorn.development.rb"
set :bundle_without, 'production'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment