0

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

Roberto
  • 199
  • 1
  • 6
  • 16
  • Changing AppKernel.php to write cache and log folders to /tmp should also improve loading times via the browser. – Fieg Nov 04 '14 at 13:57
  • @fieg As mentioned in my question, I already replaced these locations. Do you have any other suggestions perhaps? Thanks! – Roberto Nov 04 '14 at 15:51
  • Perhaps this question can help: http://stackoverflow.com/questions/12161425/why-is-my-symfony-2-0-site-running-slowly-on-vagrant-with-linux-host especially the link to http://www.whitewashing.de/2013/08/19/speedup_symfony2_on_vagrant_boxes.html – Fieg Nov 04 '14 at 21:16
  • @fieg thank you for this reference. I've read it and found that I've already tried many of those solutions, for example the usage of sshfs. But I would like to be able to just use the shared folder, and make it easy for linux, mac and windows host systems. Unfortunately there seems to be pros and cons for every possible way of sharing the library. – Roberto Nov 11 '14 at 10:46

1 Answers1

1

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

Fieg
  • 3,046
  • 1
  • 16
  • 22