GithubHelp home page GithubHelp logo

nekodeng / leancloud-self-wake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aimtao/leancloud-self-wake

1.0 0.0 0.0 7 KB

【Freeze】一行命令自动唤醒LeanCloud,解决流控原因导致的自唤醒失败。

License: MIT License

leancloud-self-wake's Introduction

leancloud-self-wake

用 Valine 做评论系统,用 LeanCloud 储存数据,并用云引擎部署 web服务管理评论内容,并邮件提醒。

近期 LeanCloud 出现 “因流控原因,通过定时任务唤醒体验版实例失败,建议升级至标准版云引擎实例避免休眠” 问题。

本仓库利用 Github Action 执行定时唤醒,防止其大白天休眠。

USE

  1. fork 此仓库
  2. 在 setting -> Secrets,添加一个 secret,Name 为 SITE,Value 为 评论后台网站的地址
  3. star 自己的仓库,这样是为了手动触发一次定时任务。

ADDED

图文见blog:一行命令解决 LeanCloud 流控问题

UPDATA

提醒:60 天此仓库没有任何更新,Github Action 就会被停止,点击 Action 页面的激活按钮就可以重新启动。

FREEZE

我已经用 crontab 来替代 Github Action 了,如果你有服务器,只需 crontab -e 设置定时任务。

*/29 7-23 * * * curl https://your_site &> /dev/null && date "+\%D \%H:\%M:\%S" >> ~/wakeup.log

leancloud-self-wake's People

Contributors

aimtao avatar

Stargazers

nekodeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.