I've been stuck for three days for this problem, any working solution will be so helpful
Here is my code at server/startup.js :
Meteor.startup(function() {
Meteor.absoluteUrl.defaultOptions.rootUrl = 'http://my_ip:my_port',
process.env.rootUrl = 'http://my_ip:my_port'
})
But nothing worked, each uploaded files keep showing link localhost:3000/cdn/storage/blablabla
Hello @rikyperdana
Set environment variable ROOT_URL to http://my_ip:my_port.
This should fix your issue.
Let me know if it helps.
What a quick reply :D
I use Ubuntu 14.04, Meteor 1.4
I inserted ROOT_URL='http:my_ip:my_port/' to /etc/environment
And I also typed export ROOT_URL='http:my_ip:my_port/'
Yet nothing worked
In your console type this to run meteor (env.vars defined before command):
ROOT_URL='http://my_ip:my_port' meteor
Thank God, it worked, bless you all veliov group member
I'm crying ;(
@rikyperdana ,
Happy to help :) . Next time do not hesitate to ask right away after you have faced an issue.
And thank you for the choice to use this lib.
Please, support this project by:
I don't mind breaking my piggy bank for this help :)

Most helpful comment
In your console type this to run meteor (env.vars defined before command):