3
I'd like to ask some information about Vagrant.
First things first, my PC runs Windows as the main OS, I'm using VirtualBox and I've installed VirtualBox in which I've created a virtual where I've installed Ubuntu and set up my development environement (Ruby-MySQL-Git-Nodejs etc), but I'd like to see whether is better option to switch to Vagrant or keep things as currently are.
Now, regarding Vagrant. From a little research I've done about why using Vagrant most resources say that it gives you the ability to create a virtual development environment same as the production. Also, by installing Vagrant you can set up a virtual Linux environment on every OS either Windows, or Mac or Linux too.
So far so good but my main question is can I use Vagrant for creating multiple development environments? so for example:
- Have n-different development environments: A for Ruby (Ruby - Rails - Postgres - Git - Nodejs) and B for PHP (PHP-MySQL-Git). So if you try in B the
ruby -v
ornode -v
commands they won't be identified as installed in this one. - Usually on a development environment there's a folder where we keep all projects, like
projects/project-a
,projects/project-b
,projects/project-c
etc etc. Can I have different/separate environements for each project, even if both project-a and project-b are PHP projects? So basically I want to keep them separate and clean from each other to avoid any mess and conflicts.
Is it better to have Linux as my main OS, or works exactly same no matter what the main OS is? Also can I set it up on my (virtual machine) Ubuntu os so I can have all dev environments there? – None – 2017-04-06T20:59:58.793
It works the same no matter the main OS. That's the benefit. If you have a virtual machine inside a virtual machine, that will get complicated, slower, and have possible problems. I'm sure it's possible, but not sure if VirtualBox can do that - have not tried. – Chloe – 2017-04-07T00:07:08.653