Skip to content

Vagrant development environment for Sylius.

Notifications You must be signed in to change notification settings

QuenanChever/Vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This configuration includes following software:

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

Usage

First you need to download this repository

$ git clone git@github.com:QuenanChever/Vagrant.git shop-tv

And build Vagrant:

$ cd shop-tv
$ 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      shop-tv.dev

From now you should be able to access your Sylius project at http://shop-tv.dev/app_dev.php.

Your newly created project is available under sylius folder.

Installing your assets manually

$ vagrant ssh -c 'cd /var/www/sylius && ./node_modules/.bin/gulp'

Troubleshooting

Vagrant setup

  • First, make sure that Virtualbox is installed. VT-X must be enabled in your BIOS/UEFI
  • Install Vagrant (tested with versions 1.9.4 and 2.0.2)
  • You'll need to enable NTS. For Ubuntu:
$ sudo apt-get install nfs-common nfs-kernel-server

Temporary files

It may happen that the /dev/shm gets saturated, in which case you need to remove the following directory:

$ rm -rf /dev/shm/sylius/

Logs

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 (inside Vagrant):

$ 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 (inside Vagrant):

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

About

Vagrant development environment for Sylius.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%