Hello Vagrant experts!
In
this thread I asked how to copy the nginx folder out to Vagrant project folder, so that I can edit the server block definitions from the comfort of the host machine.
It turns out that, if I do this, when I run `vagrant up`, nginx starts, but fails to initialize the sites (presumably because the contents of the nginx folder is changed by Vagrant after nginx has loaded). The short term solution is to run...
vagrant ssh
sudo service nginx restart
... after `vagrant up`.
My question is: Is there a way to automate this restart of nginx?
Can this be done through an entry in the Vagrantfile? Or would it be cleaner to set up a script that will run automatically on the guest server, and if so what would this script be and how would it be run?
Thanks in advance for all your enlightenment,
James