Hello,
This is an very simple issue to reproduce:
server/main.js
file =>
Meteor.startup(function () {
process.env.ROOT_URL = 'http://192.168.0.27'; //the actual server ip on my network
console.log(Meteor.absoluteUrl()); //returns http://localhost:3000/
console.log(process.env.ROOT_URL); //returns http://192.168.0.27
})
I am using METEOR@1.3-rc.10.
It is not the expected behavior, as stated by the 1.2.1 documentation (no mention of absoluteUrl()
in the guide) :
Generate an absolute URL pointing to the application. The server reads from the ROOT_URL environment variable to determine where it is running.
Should I post this as an issue?