为什么我的 Meteor 应用程序反复关闭? [英] Why does my Meteor app shut down repeatedly?

查看:22
本文介绍了为什么我的 Meteor 应用程序反复关闭?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序 Evograph 似乎在站点上没有客户端时自动关闭.但是,它会在有人访问后不久重新启动.例如,我经常注意到它停机",几分钟后回来检查时,一切正常.

It seems that my app, Evograph shuts down automatically when no clients are present on the site. However, it restarts shortly after someone visits. For example, I routinely notice the it's "down," and upon checking back a few minutes later, everything is functional.

这可能是什么原因造成的?我的网站需要持续托管 - 我该如何解决?

What may be causing this? My site requires sustained hosting - how may I fix it?

谢谢!

推荐答案

这是 meteor deploy 服务托管的站点的正常行为.由于目前该服务是免费的,因此无法保证 SLA(请参阅 https://groups.google.com/forum/#!msg/meteor-talk/HqDvR1sF3-4/YEqrXpDqVGcJ).它们通常会在几个小时不活动后关闭,然后在给出网络请求后立即重新启动.

This is the normal behaviour on sites hosted by the meteor deploy service. As the service is free at the moment there is no guaranteed SLA (see https://groups.google.com/forum/#!msg/meteor-talk/HqDvR1sF3-4/YEqrXpDqVGcJ). They typically shut down after a few hours of inactivity, then start right back up after a web request is given.

如果您的应用需要一段时间才能启动,它会说它关闭,因为它错过了它应该启动的超时时间.如果您不介意它在后台被杀死,但在有人访问时立即启动(而不显示它),请尝试从您的应用程序启动中删除内容或使启动更高效

If your app takes a while to start up, it'll say its down because it misses the timeout it should be up by. Try removing stuff from your apps startup or making the startup more efficient if you don't mind it being killed in the background but having it up as soon as someone visits (without it showing its down)

对此您无能为力.您可以等待meteor 发布他们的商业解决方案,或者使用您自己的托管服务提供商(例如Amazon 的EC2)来运行您的meteor 站点.

There isn't much you can do about this. You could wait for meteor to release their commercial solution or use your own hosting provider such as Amazon's EC2 to run your meteor site.

这篇关于为什么我的 Meteor 应用程序反复关闭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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