Skip to content

Commit 774ef63

Browse files
Gabriel MonroyMatthew Fisher
authored andcommitted
fix(vagrant): add host ip to /etc/hosts
1 parent 6e1d70d commit 774ef63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Vagrant.configure("2") do |config|
3333
config.vm.synced_folder ".", "/home/core/share", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp']
3434

3535
# workaround missing /etc/hosts
36-
config.vm.provision :shell, :inline => "echo 127.0.0.1 #{vm_name} > /etc/hosts", :privileged => true
36+
config.vm.provision :shell, :inline => "echo #{ip} #{vm_name} > /etc/hosts", :privileged => true
3737

3838
# workaround missing /etc/environment
3939
config.vm.provision :shell, :inline => "touch /etc/environment", :privileged => true

0 commit comments

Comments
 (0)