Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiguichen opened this issue May 25, 2016 · 1 comment
Open

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

xiguichen opened this issue May 25, 2016 · 1 comment

Comments

@xiguichen
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants