2013-10-31 96 views
0

標題幾乎說明了一切。你怎麼做呢?在Windows上設置流星應用的ROOT_URL

我正在嘗試設置accounts-facebook包,但它始終將OAUTH握手的localhost關閉。

在* nix環境,它做這樣:

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

但這並不在Windows上運行。

回答

2

我不能測試它適合你,但你把它像Windows中的任何其他ENV變量...

http://itechtalk.com/thread3595.html應該幫助

或者on the command line

set some_variable = some_value 
+0

對不起回合的!你是對的 - 我忘了打開一個新的終端來引入新的env變量。謝謝! – mmmeff

+0

您可以提供您在Windows中使用ROOT_URL運行流星應用程序的確切命令嗎? –

+0

大約8個月我還沒有和流星合作過,對不起,我忍不住。 –

0

易雙線版本:

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

單行版本,如果你真的需要它:

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

(注意,這裏是URL和& &之間沒有空格:空間被包含在URL,它打破流星,因爲它將使用在其網址空間)

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