mmmeff
mmmeff

Reputation: 1033

Set ROOT_URL of meteor app on Windows

The title pretty much says it all. How do you do it?

I'm trying to set up the accounts-facebook package but it keeps passing localhost off for the OAUTH handshake.

On a *nix environment, it's done as such:

ROOT_URL="http://www.mydomain.com/" meteor run

but this doesn't work on Windows.

Upvotes: 0

Views: 1925

Answers (2)

Jared Thirsk
Jared Thirsk

Reputation: 1346

Easy two line version:

set ROOT_URL=http://www.example.com:3000
meteor run

One line version, if you really need it:

cmd /c "set ROOT_URL=http://www.example.com:3000&& meteor run"

(Notice there is no space between the URL and the &&: the space gets included in the URL, which breaks meteor, as it will use that space in its URL.)

Source: Setting environment variable for just one command in Windows cmd.exe

Upvotes: 0

Mike Graf
Mike Graf

Reputation: 5317

I cant test it for you, but you would set it like any other ENV variable in windows...

http://itechtalk.com/thread3595.html should help

Or on the command line:

set some_variable = some_value  

Upvotes: 2

Related Questions