Skip to content

Instantly share code, notes, and snippets.

@harley
Last active October 15, 2015 17:27
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 harley/5beb4752fc59cfd7beb2 to your computer and use it in GitHub Desktop.
Save harley/5beb4752fc59cfd7beb2 to your computer and use it in GitHub Desktop.
capistrano 3: deploy to local vagrant
# file: config/deploy/vagrant.rb
# this allows for `cap vagrant deploy`
set :rails_env, :production
set :server_hostname, "192.168.33.10"
server 'vagrant', user: 'vagrant', roles: %w{app web db}, primary: true
set :ssh_options, {
forward_agent: true,
host_name: "127.0.0.1",
port: "2222",
keys: ['.vagrant/machines/default/virtualbox/private_key']
}
# disable slack notification
set :slack_webhook, nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment