2017 © Pedro Peláez
 

symfony symfony-vagrant

Helpers for improve Symfony perfomance when working under Vagrant enviroment

image

strontium/symfony-vagrant

Helpers for improve Symfony perfomance when working under Vagrant enviroment

  • Tuesday, March 21, 2017
  • by Strontium
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,367 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

StrontiumPjaxBundle

Helpers for improve Symfony 2 performance when working under Vagrant environment., (*1)

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/%your_app_name%., (*2)

To view the application logs, run the following commands:, (*3)

$ tail -f /dev/shm/%your_app_name%/logs/prod.log
$ tail -f /dev/shm/%your_app_name%/logs/dev.log

Installation

Add to composer.json:, (*4)

``` json { "require": { "strontium/symfony-vagrant": "*" } }, (*5)


Usage ------------ Extend yor Kernel from VagrantAwareKernel: ``` php <?php // app/AppKernel.php use Strontium\SymfonyVagrant\Kernel\VagrantAwareKernel; class AppKernel extends VagrantAwareKernel

If you using PHPStrorm and want to have copy of Symfony cache in your host machine, add next scripts to composer.json:, (*6)

json "scripts": { "post-install-cmd": [ "Strontium\\SymfonyVagrant\\Composer\\ScriptHandler::cacheWarmupOnVagrant" ], "post-update-cmd": [ "Strontium\\SymfonyVagrant\\Composer\\ScriptHandler::cacheWarmupOnVagrant" ] }, (*7)

The Versions

21/03 2017

dev-master

9999999-dev

Helpers for improve Symfony perfomance when working under Vagrant enviroment

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony vagrant phpstorm