Permalink
Browse files

Add a vagrant to package a box via 'vagrant package --vagrantfile Vag…

…rantfile.pkg'

Correct README
  • Loading branch information...
1 parent b37a973 commit a8cae40c22f4556e0029f1244984ca5325cd36be @ymainier committed Oct 26, 2010
Showing with 7 additions and 2 deletions.
  1. +3 −2 README.markdown
  2. +4 −0 Vagrantfile.pkg
View
@@ -8,7 +8,7 @@ How
gem install vagrant
2. Download and Install [VirtualBox](http://www.virtualbox.org/)
3. Download a vagrant box (name of the box is supposed to be lucid32)
- vagrant box add base http://files.vagrantup.com/lucid32.box
+ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
4. Clone this repo
5. Go to the repo and launch the box
cd [repo]
@@ -17,9 +17,10 @@ How
6. Add this line to your /etc/hosts (or windows equivalent)
127.0.0.1 www.dev-site.com dev-site.com dev.dev-site-static.com
-That's it, the file in repo are served here : [http://www.dev-site.com:8080/](http://www.dev-site.com:8080/)
+That's it, the file in [repo]/public/ are served here : [http://www.dev-site.com:8080/](http://www.dev-site.com:8080/)
You can add `XDEBUG_PROFILE` to your GET parameter to generate an xdebug trace, e.g. [http://www.dev-site.com:8080/?XDEBUG_PROFILE](http://www.dev-site.com:8080/?XDEBUG_PROFILE)
You can then investigate at [http://localhost:8080/webgrind/](http://localhost:8080/webgrind/)
+Phpmyadmin is available [http://localhost:8080/phpmyadmin/](http://localhost:8080/phpmyadmin/). User `myadmin`, Password `myadmin`
View
@@ -0,0 +1,4 @@
+Vagrant::Config.run do |config|
+ config.vm.forward_port("http", 80, 8080)
+ config.vm.forward_port("mysql", 3306, 3306)
+end

0 comments on commit a8cae40

Please sign in to comment.