2017-05-11 35 views
1

我剛剛啓動了帶有nodejs的Google應用引擎。我創建了一個在我的機器上正常工作的本地項目。如果我打無法在Google應用引擎上運行nodejs項目

http://localhost:7000/services/user/getuser

它返回一個JSON對象。

我已經部署使用

gcloud app deploy 

在谷歌應用程序引擎在同一個項目現在,當我打

http://help-coin.appspot.com/services/user/getuser

它顯示

Error: Server Error 

The server encountered a temporary error and could not complete your request. 
Please try again in 30 seconds. 

我已經檢查了日誌在服務器上

Load controllers from path '/app/app/services' non recursive. 

--------make-runnable-output-------- 

undefined 

------------------------------------ 

Up and running on port 7000 

Loading controller 'UserService.js'. 

服務器端沒有錯誤。這是什麼問題?我錯過了什麼嗎?

這裏是我已經部署https://github.com/ermarkar/nodejs-typescript-sample

回答

2

您的應用程序必須爲8080,而不是7000或任何其他端口的項目。

參見this

+0

有什麼方法可以改變端口工作在7000上工作嗎? –

+0

@SunilGarg我不這麼認爲。 8080有什麼問題? –

相關問題