Easy development environment for Laravel 4 with Vagrant. Shell
is used for provisioning. Maintained by Sumardi Shukor.
First, clone this repository.
git clone https://github.com/sumardi/vagrant-laravel-4.git
Then, fire up Vagrant.
vagrant up
The first time you run vagrant it will need to fetch the virtual box image which is ~300mb so depending on your download speed this could take some time. Grab a cup of 0xC00FEE
!
After the provisioning has completed, you can access your project at http://192.168.13.37 in a browser.
Note: You may have to change permissions on the public/laravel/app/storage folder to writeable under the host OS.
For example:
chmod -R 777 public/laravel/app/storage
- Centos 6.5 (32bit)
- Apache 2
- MySQL 5
- PHP 5.4 (with mbstring, mysql, curl, gd, dom, mcrypt, imap, xdebug, pdo, pear)
- Composer
- PHPUnit
- phpMyAdmin
- Beanstalkd (with Beanstalk Console)
- Supervisord
- NodeJS (with Grunt, Gulp)
- User: root
- Password: (blank)
- Port Forwarded :
3306
=>1337
- ServerName : localhost.localdomain
- Port Forwarded :
80
=>8080
- Port :
11300
Vagrant is very well documented but here are a few common commands:
vagrant up
starts and provisions the vagrant environmentvagrant suspend
suspends the machinevagrant resume
resume a suspended vagrant machinevagrant halt
stops the vagrant machinevagrant ssh
connects to machine via SSHvagrant destroy
stops and deletes all traces of the vagrant machinevagrant reload
restarts vagrant machine, loads new Vagrantfile configuration