0

I have started working with Vagrant and what puzzles me, is the provisioning.

I have added all dependencies like apache/php/nodejs/mysql/etc. to shell provision script and now the question is, what should I do with apache conf?

Should I do that way:

  1. Add the provisioning code which will copy the webapp confing to /etc/apache2/sites-available and then enable it (I mean the script will enable it after vagrant up will run for the first time, but don't run the vagrant up yet)
  2. put the project inside the shared folder
  3. only run Vagrant Up after the two above have been finished

Or should I create a script for provisioning inside the project itself and thus make the vagrant dev environment more independent so it can be used with other projects?

naneri
  • 3,771
  • 2
  • 29
  • 53

0 Answers0