/vagrant-magento2

Vagrant config for Magento 2 development

Primary LanguageShell

Vagrantfile for Magento2

Clone this repository to your local machine.

Copy or rename config.yaml.sample to config.yaml and configure it as you need:

$ cp config.yaml.sample config.yaml
$ nano config.yaml
For Mac users

If you're Mac user please consider to use mutagen for project synchronization.

If you don't have Magento 2 installed at ./src then use mutagen.yaml.sample sample config, otherwise mutagen.yml.sample-m2-installed.

Copy or rename sample mutagen config to mutagen.yml and adjust it to your needs.

$ cp mutagen.yml.sample mutagen.yml
$ nano mutagen.yaml

Set the folders -> magento -> use_mutagen section inside the config.yaml as true.

$ vagrant halt && vagrant up

Be sure you have the ~/.ssh/config file with correct permissions.


Create an empty src directory:

$ mkdir src

Run the following command to create and run the virtual machine:

$ vagrant up

After provision please reboot the machine using following commands:

$ vagrant halt && vagrant up

Install Magento 2 or clone your repository to src directory, import database and restart nginx.