Search code examples
symfonyvagrantnfs

Best practices for sharing a symfony application between unix host and vagrant client vm


I am using Vagrant on my Ubuntu machine, which I provision using Ansible, to work on my Symfony 2 project.

I've tried to find the best setup for sharing my code between the host and client machine, but I keep having encountering troubles:

  1. Cache and logs directories are not writable, even when the folders have 777 rights.
  2. Loading the application via the browser is extremely slow.

I have solved the first with placing the cache and logs folder on /tmp/cache(logs) since this is just my development environment.

This leaves me with the question on how to properly set up the file sharing between host and client machine where you do not experience these extreme loading times.

Edit: I am using NFS to share the folder and it's contents


Solution

  • Have you tried NFS shares? This usually increases performance dramatically.