-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple projects with different databases and IP addresses #22
Comments
The easy way :
|
Cethy is spot on here. This is exactly how you would do it. |
Excellent. That's exactly what I was after. Thank you! |
Thanks for that, I used it and it worked, however wouldn't running two vm's be a burden on the PC? |
It's more a disk space hog (Vagrant can't run two VirtualBox VMs at the same time IIRC). |
@unclepickles It's totally possible to host multiple hosts on the same VM (like any other machine), it's become a matter of apache/nginx/... configuration. But it was not what @Dobby89 wanted to achieve (good separation of his projects). To answer your question on burden, VirtualBox is very good at handling multiple VMs (usually 3-4 on my mba'13 with no problem, besides the battery). |
Thanks everyone for your wonderful responses, ncerminara 's in particular emplying Yaml is superb. Wonder if we can discuss adding/upgrading apps in here too? or is this thread specific to the box only? |
it's been applied, and it worked, for those who don't know and want a quick explanation it's as follows: hosts (file)
end when I open lara1.dev I get the right place, and when I open gsd too I can see what I put in there, and the main file (scotchbox itself) that also works, but lara2.dev I get diverted to main, any suggestions? |
I've installed the box in a directory called
mysite
and added192.168.33.10 mysite.dev
to my hosts file so I'm now able to see the site by going to http://mysite.dev. Good.Now what approach is required for me to set up another project directory called
another-site
using scotchbox and the hosts file setting of192.168.33.10 another-site.dev
? Does scotch box always use the same IP address or can it be changed?Basically, how do you set up vagrant and/or scotchbox to work on completely separate projects without IP addresses clashing? With that in mind, how would you set up different databases for each project directory or installation of scotchbox?
The text was updated successfully, but these errors were encountered: