vagrant/puphpet: adding a custom nginx default conf file

980 Views Asked by At

i use Puphpet to create a local testing vagrant /VM servers and my question is:

I ssh into the VM to change my etc/nginx/conf.d/default.conf config file, but every now and then when either i have to to or choose to i destroy the said vm to mainly re-create or because of issue, i need to repeat the above process of having to update a few config files.

Is there a way say within the vagrantfile or the comman.yaml (puphpet) file to actually add this automatically so i don't need to do this at all.

1

There are 1 best solutions below

3
On

You could create a shell script in puphpet/files/exec-once[1] to replace your default.conf file.