Skip to content

Instantly share code, notes, and snippets.

@raygunsix
Created October 18, 2012 20:15
Show Gist options
  • Save raygunsix/3914499 to your computer and use it in GitHub Desktop.
Save raygunsix/3914499 to your computer and use it in GitHub Desktop.
Capistrano role for vagrant deployment
# public key needs to be added to deploy user
task :dev do
role :web, "localhost"
role :app, "localhost"
role :db , "localhost", :primary => true
set :rails_env, "qa"
ssh_options[:keys] = [File.join(ENV["HOME"], ".vagrant", "insecure_private_key")]
ssh_options[:port] = 2222
ssh_options[:user] = "deploy"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment