Awesome
HEROKU WECHATY GETTING STARTED
Deploy to Heroku for Wechaty Starter Project
About Deploy to Heroku
Button
Creating a 'Deploy to Heroku' Button
The ‘Deploy to Heroku’ button enables users to deploy apps to Heroku without leaving the web browser, and with little or no configuration. The button is ideal for customers, open-source project maintainers or add-on providers who wish to provide their customers with a quick and easy way to deploy and configure a Heroku app.
FEATURES
- Deploy to Heroku without leaving the Web Browser. See
Deploy to Heroku
Button above - Restore Wechat Bot Session across Restart by enable MemoryCard with AWS S3. See
src/get-memory.ts
- Hot Module Reload Enabled for convenience when developing. See
src/handlers/on-*.ts
- Send Online/Offline Notification Message to BotSelf when the Program Start/Stop. See
src/finis.ts
- Simpel Web Server that can be used to Scan QR Code, or any other operations integrated with Wechaty. See
src/start-web.ts
LIMITATIONS
- If an app has a web dyno, and that web dyno receives no traffic in a 30 minute period, the web dyno will sleep
- Dynos are restarted (cycled) at least once per day to help maintain the health of applications running on Heroku
SEE ALSO
- Creating a 'Deploy to Heroku' Button
- Introducing Heroku Button
- https://github.com/heroku/button-sample
- Heroku App.Json Manifest and Button Maker
- Why does SIGTERM handling not work correctly in NodeJS with NPM?
Use Cases
- Friday BOT - https://bot-friday.herokuapp.com/
- OSSBot - https://oss-bot-dev.herokuapp.com/
- Mike BO - http://mike-bo.herokuapp.com/
- QiJi BOT - https://qiji-bot.herokuapp.com/
- Bot Ops - https://bot-ops.herokuapp.com/
- Rui Assistant BOT
- Juzi.BOT
HISTORY
v0.4 (Feb 3, 2020)
Wechaty 0.56
v0.0.1 (Aug 9, 2018)
Init version for deploy to HeroKu
FAQ
1. How to shutdown an app deployed on Heroku?
To completely 'stop' your app you can scale the web dynos down to zero which effectively takes all your app http-processes offline.
$ heroku ps:scale web=0
Scaling web processes... done, now running 0
AUTHOR
Huan LI (李卓桓) <zixia@zixia.net>
COPYRIGHT & LICENSE
- Code & Docs © 2018 Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons