gpt4 book ai didi

node.js - Herkoku "must sleep 6 hours in a 24 hour period",显示自定义文本?

转载 作者:太空宇宙 更新时间:2023-11-04 02:22:42 25 4
gpt4 key购买 nike

Heroku says (免费)

Must sleep 6 hours in a 24 hour period

好的,没问题。

但是我可以影响向用户显示的消息或任何文本,例如:“您好,用户,不幸的是,网站需要休息,请在早上 6 点到凌晨 2 点重试”。

我可以影响正常运行时间,因为每 20 分钟发送一次 ping。

我刚刚找到this :

... free dynos are allowed 18 hours awake per 24 hour period, and over the next few weeks we will begin to notify users of apps that exceed that limit ...

最佳答案

如果您使用 CDN,则可以创建一个计划任务,在一天中的某个时间用静态页面替换根页面,确保 CDN 更新到该页面,然后让应用停止运行 6 小时。

CloudFlare 文档可能是开始学习 CDN 如何工作以及如何设置它的好地方(请参阅: CloudFlare Support > Getting Started )。当然,您也可以使用不同的内容分发网络 (CDN) 服务。

关于node.js - Herkoku "must sleep 6 hours in a 24 hour period",显示自定义文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32300260/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com