LEMP Box for Vagrant
Ruby
Pull request Compare This branch is 3 commits ahead of santiagogil:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
cookbooks
.gitignore
.gitmodules
README.md
Vagrantfile

README.md

LEMP provisioned by chef-solo on Vagrant

Vagrant is a tool for building and distributing virtualized development environments.

By providing automated creation and provisioning of virtual machines using Oracle’s VirtualBox, Vagrant provides the tools to create and configure lightweight, reproducible, and portable virtual environments. For more information, see the part of the getting started guide on Why Vagrant?

Quick Start

First, make sure your development machine has VirtualBox installed (version 4.2 and later are preferable). The setup from that point forward is very easy:

1. Install Vagrant (version 1.0.5 and later are preferable)
2. $ git clone --recursive https://github.com/gustavobgama/LEMP-Box.git your-folder
3. cd your-folder
4. $ vagrant up
5. Wait a few minutes   
6. $ sudo su and then # echo "33.33.33.33  laravel.dev" >> /etc/hosts

Results

  • NGINX + PHP responding on IP 33.33.33.33 (in browser, type http://laravel.dev and see a default Laravel installation)
  • Xdebug ready for NetBeans depuration
  • MySQL connection available form host machine (Host: 33.33.33.33, User: root, Password: password)

Known Issues

  • In first time you are running the command vagrant up, is possible that vagrant will return the following message: "VM must be created before running this command. Run vagrant up first." In this case you only need reload the configuration with this command: vagrant reload.