Virtualization refers to the act of creating a virtual (rather than actual) version of something, including virtual computer hardware platforms, storage devices, and computer network resources.
Vagrant provides the same, easy workflow regardless of your role as a developer, operator, or designer. It leverages a declarative configuration file which describes all your software requirements, packages, operating system configuration, users, and more.
Vagrant will isolate dependencies and their configuration within a single disposable, consistent environment, without sacrificing any of the tools you are used to working with (editors, browsers, debuggers, etc.). Once you or someone else creates a single Vagrantfile, you just need to vagrant up and everything is installed and configured for you to work. Other members of your team create their development environments from the same configuration, so whether you are working on Linux, Mac OS X, or Windows, all your team members are running code in the same environment, against the same dependencies, all configured the same way. Say goodbye to "works on my machine" bugs.
Note: Use Git Bash for Windows users
$ ssh-keygen -t rsa -C "[email protected]"
You can replace "[email protected]" to any string value but it's recommended to use your email address
To check version:
$ vagrant -v
Scotch Box is a pre-configured Vagrant Box with a full array of features to get you up and running with Vagrant in no time.
$ vagrant box add scotch/box
$ git clone https://github.com/scotch-io/scotch-box my-project
$ cd my-project
- Open Vagrantfile to any text editor
...
config.vm.hostname = "scotchbox" // By default
...
Change it to whatever you want
...
config.vm.hostname = "my-project"
...
$ vagrant up
$ vagrant halt
$ vagrant ssh
Note: You can check command by entering vagrant --help
$ sudo nano /etc/hosts
- Run Notepad as Administrator
- Go to C:\Windows\System32\drivers\etc
- Open hosts
Enter IP Address and Domain name
192.168.33.10 my-project.local
Note: By default .local is the extension when using Scotch Box.
Install GUI Tool
- HeidiSQL - (Recommended)
- MySQL Workbench
- DataGrip
- Navicat For MySQL
- SequelPro