Vagrant forward range port

You can forward as many ports as you want, as following:

for i in 8080..8089
          config.vm.network :forwarded_port, guest: i, host: i
end

on the script above tell to forward port 8080-8089

Please follow and like us:
0

Menambah RAM pada Vagrant

Secara default vagrant akan mengalokasikan 512mb RAM, penulis rencana ingin increase ram dari 512mb ke 2gb, untuk increase RAM maka tambahkan script berikut di Vagrant files :

<pre class=" language-markup"><code class=" language-markup">config.vm.provider :virtualbox do |v|
  v.customize ["modifyvm", :id, "--memory", 2048]
end

kemudian reload vagrant anda

vagrant reload

Selamat anda telah berhasil menaikan ram vagrant anda

Please follow and like us:
0