Home

Vagrant Overview

ActionCommand
vagrant reloadVagrant halt followed by up
vagrant upStart a Vagrant box
vagrant sshSecret shell into a Vagrant box

Vagrant Port Forwarding

To forward 80 => 8080 from Vagrant Box to host.

Vagrant.configure("2") do |config| # Other config config.vm.network "forwarded_port", guest: 80, guest_ip: "0.0.0.0", host: 8080, host_ip: "127.0.0.1" end

config.vm.provider 'virtualbox' do |vb| vb.customize ['modifyvm', :id, '--cableconnected1', 'on'] end

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/vagrant/vagrant-overview

Sections


Related