Skip to content

Instantly share code, notes, and snippets.

@garethr
Created August 8, 2011 14:38
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 garethr/1131868 to your computer and use it in GitHub Desktop.
Save garethr/1131868 to your computer and use it in GitHub Desktop.
Vagrantfile with a debugger in, a useful way of interacting with the context
Vagrant::Config.run do |config|
config.vm.define :web do |web_config|
require 'ruby-debug'
debugger
web_config.vm.box = "lucid32"
web_config.vm.forward_port("http", 80, 8080)
end
config.vm.define :db do |db_config|
db_config.vm.box = "lucid32"
db_config.vm.forward_port("db", 3306, 3306)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment