2017-05-11 47 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有什么问题? –

相关问题