August 2018
Intermediate to advanced
372 pages
9h 29m
English
Now, we are going to create a Vagrantfile configuration file in the root of our application to create a simple environment. We will provide a Linux distribution environment, which will be Ubuntu. The content of the Vagrantfile is as follows:
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!VAGRANTFILE_API_VERSION = "2"Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "hashicorp/precise32" config.vm.network :forwarded_port, guest: 8090, host: 8090 config.vm.network "public_network", ip: "192.168.1.121" #config.vm.synced_folder "target","/opt" config.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--memory", "2048"] end # provision config.vm.provision ...
Read now
Unlock full access