在Google App Engine上部署Node.js,运行两次 [英] Deploy Node.js on Google app engine, running twice issue

查看:129
本文介绍了在Google App Engine上部署Node.js,运行两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个小型应用程序服务器,希望它继续监听Firebase数据库的更改.因此,我尝试在Google App Engine上部署该应用程序,但是服务器中的代码运行了两次.然后,我检查了该特定应用引擎实例的日志.好像它两次运行了应用服务器.

I wrote a small app server that I want it to keep listening on the change of the firebase database. So I tried to deploy the app on Google app engine, but the code in server ran twice. Then I checked the log of that particular app engine instance. Seems like it ran the app server twice.

App引擎的日志图像:

App engine's log image:

我找不到解决此问题的方法,帮助! 预先感谢!

I couldn't find a way to fix this, help! Thanks in advance!

推荐答案

重复的消息通常表示正在启动多个实例.可以在开发者控制台的实例"页面上进行检查,也可以在此处手动停止运行实例.

The repeated messages typically indicate multiple instances being started. Which can be checked on the Instances page on the Developer Console, where you can also manually stop running instances.

但是您还需要检查

But you also need to check the service scaling settings in your app.yaml file as that's what controls the automatic starting of instances.

这篇关于在Google App Engine上部署Node.js,运行两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆