Change the host mirror from the local host to a specific one in the client

I am in window 7, and the meteor project is under the ubuntu server on VirtualBox. Therefore, when I set the speed, I have a problem with localhost in my windows browser. http: // localhost: 5000 /? mocha = true & lastModified = 1424259562250

Net :: ERR_CONNECTION_REFUSED

I want to change localhost to my Ubuntu server VirtualBox IP.

+5
source share
1 answer

You need to set the environment variable ROOT_URL . This is also true for launching the application on a mobile device with Cordova. I found that if my main (non-unit testing) Meteor application showed from 192.168.0.222haps000, my ROOT_URL variable should look like this:

ROOT_URL="http://192.168.0.222:3000"

I use sanjo:jasmine with speed, and with this I can say that it uses different ports for client servers and unit test servers and that 3000 in the ROOT_URL variable will be replaced with the corresponding ports, but this will use the IP address 192.168.0.222.

0
source

Source: https://habr.com/ru/post/1213654/


All Articles