2013-06-05 56 views
4

我試圖讓MOOV端口8080上運行,但我得到的錯誤:如何使用非標準端口?

$ curl -s -i http://mlocal.nytimes.com:8080/ 
HTTP/1.0 534 Internal Server Error 
Connection: close 
Content-Type: text/plain; 
Content-Length: 69 

Host header 'mlocal.nytimes.com:8080' did not match project rewriters 

我開始了服務器:

$ sudo moov server -p=8080 --auto-hosts 

(這似乎在80端口工作正常)

回答

4

當您手動指定要運行的端口時,還需要執行額外的步驟。

走進項目文件並打開config.json

附加:8080像這樣指定的域名:

「$ .nytimes.com:8080 => www.nytimes.com」,

etc ..

+1

是的,你可能需要重新啓動服務器!當您推送到Moovweb雲時,不要忘記取出這些端口規格。 – nmakiya

相關問題