#Symfony 2 Vagrant Development setup (originally forked from irmantas/symfony2-vagrant)
####This setup is based and tested with Ubuntu Trusty(14.04) 64 bit base box, with Vagrant 1.7.4 version and latest Virtual Box
-
Install Vagrant using using the installation instructions
-
If you are on Windows OS install NFS support plugin more information and detailed installation instructions:
vagrant plugin install vagrant-winnfsd
-
Clone this repository
$ git clone https://github.com/sloba88/vagrant-symfony.git
-
install git submodules
$ git submodule update --init
-
run vagrant (for the first time it should take up to 10-15 min)
$ vagrant up
-
Web server is accessible with http://33.33.33.10 (IP address can be changed in Vagrantfile)
-
PhpMyAdmin is accessible with http://33.33.33.10/phpmyadmin
-
Vagrant automatically setups database with this setup:
- Host: 33.33.33.10
- Username: root
- Password: root
- Database: symfony
- Puppet (3.7.5)
- Nginx using puppet module from example42
- MySQL using puppet module from example42
- PHP-FPM (PHP 5.6.17)
- PhpMyAdmin
- MongoDB
- Redis
- GiT (1.9.1)
- Composer installed globaly (use
$ composer self-update
to get the newest version) - Vim
- PEAR
- cURL
- Node.js (v0.10.37)
- npm (3.6.0)
- less
- OpenJDK
- sass
- Compass
- Imagic
- Capistrano
- Capifony
- phpqatools using puppet module from (https://github.com/rafaelfelix/puppet-phpqatools)
- memcached
- elasticsearch
- ohmyzsh
####Startup speed
To speed up the startup process use $ vagrant up --no-provision
(thanks to caramba1337)
To share your public key with your host machine make sure to add config in ssh folder
nano ~/.ssh/config
With content:
Host 127.0.0.1
ForwardAgent yes
Check if your ssh key is added to local ssh-agent with
ssh-add -l
If not add it:
ssh-add ~/.ssh/id_rsa
####How to work
-
SSH to vagrant
$ vagrant ssh
-
Navigate to
/vagrant/www/
-
Commit git changes from inside the virtual machine