K
K
Kirill2013-12-22 11:26:21
virtual box
Kirill, 2013-12-22 11:26:21

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

3 answer(s)
S
silentvick, 2014-01-01
@masterclass

You can configure nginx to work with several domains by server_name and register them in the hosts file of the host system.

_
_ _, 2013-12-22
@AMar4enko

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.

R
Roman Kokarev, 2013-12-27
@kokareff

Well, let's say it's possible. What about the meaning?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question