Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In meteor how to change ROOT_URL of development environment when developing over a LAN

Tags:

meteor

I've got meteor on a linux box that I develop on through SSH to a windows laptop. For simple apps I can just substitute the lan address (10.0.1.101:3000) for localhost:3000 in the (windows)browser and it works.

But working through a tutorial that uses oauth w twitter, it seems meteor hardcodes ROOT_URL as localhost when in development environment and sends that to twitter.js. This happens even though in dev.twitter.com I have given the callback URL as

http://10.0.1.101:3000/_oauth/twitter?close. 

Is there someway to develop on a machine that is not localhost?

like image 749
mcktimo Avatar asked Jan 13 '14 00:01

mcktimo


1 Answers

You need to set the environment variable before starting meteor:

ROOT_URL=http://10.0.1.101:3000 meteor
like image 184
Christian Fritz Avatar answered Oct 19 '22 07:10

Christian Fritz