Skip to content

Commit

Permalink
Add a vagrant to package a box via 'vagrant package --vagrantfile Vag…
Browse files Browse the repository at this point in the history
…rantfile.pkg'

Correct README
  • Loading branch information
ymainier committed Oct 26, 2010
1 parent b37a973 commit a8cae40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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`
4 changes: 4 additions & 0 deletions Vagrantfile.pkg
Original file line number Diff line number Diff line change
@@ -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.