vagrant - Request API on an other VM -
i have 2 vm ansible, 1 deploy our django project, , 1 deploy our wordpress websites.
we made wordpress plugin wich request rest api of django project. problem : want dev in local on django project , must enter url of django project in wordpress plugin made. problem is, url accessible host machin not on other vm.
vagrantfile port config of django vm :
config.vm.network :forwarded_port, guest: 8443, host: 8443
vagrantfile port config of wordpress vm :
config.vm.network :forwarded_port, guest: 5580, host: 5580
sorry bad english
thanks in advance;
add line in each vm's vagrantfile :
config.vm.network "private_network", ip: "ipaddress"
substitute ipaddress
fitting ip , way can access whichever vm through set ip. need both vm's running @ same time in order communication successful though.
Comments
Post a Comment