Sylius/etc/vagrant
2016-10-14 15:18:21 +02:00
..
shell_provisioner [Development] Vagrant rework to PHP 7, MySQL 5.6, Apache/FPM, Debian 2016-10-14 15:18:21 +02:00
.gitignore Create the "etc" directory for environment specific configuration. 2015-12-11 12:55:55 +01:00
README.md [Development] Vagrant rework to PHP 7, MySQL 5.6, Apache/FPM, Debian 2016-10-14 15:18:21 +02:00
Vagrantfile [Development] Vagrant rework to PHP 7, MySQL 5.6, Apache/FPM, Debian 2016-10-14 15:18:21 +02:00

Description

This configuration includes following software:

  • Debian 8.1
  • PHP 7.0
  • MySQL 5.6 Percona Server
  • Apache 2.2.22
  • Composer
  • Curl
  • Vim
  • Git

Usage

First you need to create vagrant VM

$ cd etc/vagrant
$ vagrant up

While waiting for Vagrant to start up, you should add an entry into /etc/hosts file on the host machine.

10.0.0.200      sylius.dev

Setup your db password in parameters.yml

parameters:
    database_password: vagrant

From now you should be able to access your Sylius project at http://sylius.dev/

Troubleshooting

Using Symfony2 inside Vagrant can be slow due to synchronisation delay incurred by NFS. To avoid this, both locations have been moved to a shared memory segment under /dev/shm/sylius.

To view the application logs, run the following commands:

$ tail -f /dev/shm/sylius/app/logs/prod.log
$ tail -f /dev/shm/sylius/app/logs/dev.log

To view the apache logs, run the following commands:

$ tail -f /var/log/apache2/sylius_error.log
$ tail -f /var/log/apache2/sylius_access.log