Playing around with Sonata and Sylius on my Vagrant box I found myself waiting 30 seconds to get a response from the server for every single request.
After looking up on the internet, all I found was that I needed to activate the cache on my projects. Which sucks. I don’t want to enable it on my dev environment and then on clean it every time I want to test something.
Luckily, I saw a twitter from @spicy_sake about slow performance of Symfony’s projets on vagrant boxes (see below) and the tipped me off with this article from Benjamin Eberlei. It’s a few steps article about how to troubleshoot the issue.
In my case, once I’ve changed the type of my shared folders to NFS the problem was gone. I basically added ‘type: “nfs”‘ on the end of the related config:
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "host_path/", "/guest_path/", type: "nfs"
In the article there are more instructions if this one is not enough to keep you going.
That’s one of my favorites things about web. People helping people. Thanks guys!
https://blog.mdnsolutions.com/slow-performance-of-symfony-projects-on-vagrant/Slow symfony's projects on Vagrant boxeshttps://i1.wp.com/blog.mdnsolutions.com/wp-content/uploads/2014/04/symfony_black_01-300x1032.png?fit=300%2C100&ssl=1https://i1.wp.com/blog.mdnsolutions.com/wp-content/uploads/2014/04/symfony_black_01-300x1032.png?resize=150%2C50&ssl=1Renato MedinaPerformancePHPSymfonyVagrantNFS,Performance,Shared Folders,Slow,Sonata,Sylius,Symfony,VagrantPlaying around with Sonata and Sylius on my Vagrant box I found myself waiting 30 seconds to get a response from the server for every single request.
After looking up on the internet, all I found was that I needed to activate the cache on my projects. Which sucks. I...Renato MedinaRenatoMedinamedinadato@gmail.comAdministratorPHP/MySQL Web Developer / Eternal student / A IT lover / Trying to learn to cooking / and so forth..
I am a Bachelor of Computer Information Systems from Brazil. Certified Oracle CMDEV CMDBA. I've been working as a Web Developer PHP and MySQL since 2004. I've also developed several software for companies in various industries. Currently consults MySQL, PHP development and keeps this blog where he talks about the BD among other topics.
My website is http://www.mdnsolutions.com and my blog this one you are in http://blog.mdnsolutions.com.MDN Blog