Meteor-files: Uploaded files keep showing Localhost:3000

Created on 9 Feb 2017  路  6Comments  路  Source: veliovgroup/Meteor-Files

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

question

Most helpful comment

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

ROOT_URL='http://my_ip:my_port' meteor

All 6 comments

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 :)
veliov_group_payment

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuarrep picture tuarrep  路  4Comments

schlaegerz picture schlaegerz  路  3Comments

JanSchuermannPH picture JanSchuermannPH  路  3Comments

sylido picture sylido  路  3Comments

nayayan picture nayayan  路  3Comments