Sylius installation via Vagrant¶
This article assumes you’re familiar with Composer, a dependency manager for PHP. It also assumes you have Composer installed globally. Basic knowledgle about Vagrant is also required, and of course installed Vagrant.
Vagrant is a tool for building complete development environments, that in case of Sylius will help you to quickly have full application running on your machine.
How to install Sylius using Vagrant?¶
- Create a new Sylius-Standard project using composer in no interaction mode (
$ composer create-project -s beta -n sylius/sylius-standard acme
The no interaction mode results in having null database password, what lets Vagrant put its own password(
vagrant) into that parameter.
It is not mandatory. You can change the database password in the
vagrant also later on.
- Inside your new project directory clone the Sylius/Vagrant repository into the
$ git clone email@example.com:Sylius/Vagrant.git vagrant
- Move to the
/vagrant/directory and build Vagrant:
$ cd vagrant $ vagrant up
- Add an entry for sylius.dev to the
# etc/hosts 10.0.0.200 sylius.dev www.sylius.dev
From now on you will be able to access running Sylius application at http://sylius.dev/app_dev.php.