Last active
October 15, 2015 17:27
-
-
Save harley/5beb4752fc59cfd7beb2 to your computer and use it in GitHub Desktop.
capistrano 3: deploy to local vagrant
This file contains 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
# 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