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

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -