How to use Vagrant to build a development environment
This article focuses on "how to use Vagrant to build a development environment", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build a development environment using Vagrant.
Vagrant is a Ruby writing tool that allows you to easily control VirtualBox. With the combination of Vagrant and VirtualBox, we can build a unified development environment to avoid problems caused by differences between development environment and production environment.
Of course, you need to install vagrant and VirtualBox,vagrant to communicate with virtualbox using a box file.
It is probably such a structure:
Vagrant-> ubuntu (/ Centos/arch linux/ other versions of linux) server box file-> VirtualBox
Your code is edited in the native host, but the code runs in a virtual machine environment controlled by vagrant.
For details, you can go to the vagrant official website to inquire: http://www.vagrantup.com/
Here, you can query the linux version supported by vagrant: http://www.vagrantbox.es/
At this point, I believe you have a deeper understanding of "how to use Vagrant to build a development environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!