iron-meteor / iron-cli

A scaffolding command line tool for Meteor applications.
640 stars 82 forks source link

how to change the ROOT_URL when start meteor use iron? #246

Open xiguichen opened 8 years ago

xiguichen commented 8 years ago

I installed meteor in my virtual machine, when i use it under my windows machine it will get an ip address like "192.168.100.128", but will get a new ip address like "192.168.200.128" in my ubuntu. I tried to use two configuration for them to use different ROOT_URL in different machine. But that doesn't work.

I tried to change ROOT_URL under config/linux/env.sh and start up with iron --env linux, but it still use the old IP address in windows machine.

andy4545 commented 8 years ago

i have the issue - my development os is windows. the .sh file will only run on linux unless you have something like cygwin running on your windows os and Iron cli would have to run the command with the sh prefix eg sh. env.sh

so the only way i could get this to work was by putting the variable on the command line when running iron eg:

MONGO_URL=mongodb://127.0.0.1:27017/db1 iron run