Answer the question
In order to leave comments, you need to log in
One Vagrant for multiple projects
Greetings!
Recently got acquainted with Vagrant .
There was such a question. I have several projects with the same environment. Clearly, I can connect several sharing folders, my own for each project, then set up the nginx config and everything is ok.
But how then from the host to access these different projects? Forward different ports?
Thank you.
Answer the question
In order to leave comments, you need to log in
You can configure nginx to work with several domains by server_name and register them in the hosts file of the host system.
Bad practice in my opinion. One project - one vagrant, don't complicate your life.
And if you don’t want to drag provision configs back and forth, then vagrant can be configured to drag them from the server instead of using local settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question