This repo houses the Puppet manifests and Vagrantfile that we use for local Laravel 4 based development on Mac OS X. This project is based on some original work by bureaublank/galileo-laravel.
- NGINX
- PHP-FPM (extensions: mcrypt, cli, apc, xdebug, apc)
- PostgreSQL
- MySQL (root pw: vagrant)
- Composer
- Laravel 4
- VirtualBox
- Vagrant
-
Clone the repo into where you want to have your Vagrant box setup. This repo contains the Vagrantfile which will configure your box and Puppet manifests for provisioning of the box.
git clone https://github.com/galador/laravel-vagrant.git
-
Once cloned, cd into the directory, and run:
vagrant up
-
This will start the process. It may take a while depending on your connection!
A few things are happening: First, it's downloading an Ubuntu 12.04 Precise32 box if you don't already have it. After that's done, the box will boot and Puppet will provision the empty box with the stack described above. -
Once it's all done, just go to http://localhost:8080 in a web browser and you should see the default Laravel 4 "Hello World!" page.
-
The www/ folder where you clone the repo is the web root shared with the virtual machine and where Laravel was installed into.