Skip to content

wechaty/heroku-wechaty-getting-started

Repository files navigation

HEROKU WECHATY GETTING STARTED

Powered by Wechaty Build Status Greenkeeper badge

Deploy to Heroku for Wechaty Starter Project

Heroku + Wechaty

About Deploy to Heroku Button

Deploy

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

  1. Deploy to Heroku without leaving the Web Browser. See Deploy to Heroku Button above
  2. Restore Wechat Bot Session across Restart by enable MemoryCard with AWS S3. See src/get-memory.ts
  3. Hot Module Reload Enabled for convenience when developing. See src/handlers/on-*.ts
  4. Send Online/Offline Notification Message to BotSelf when the Program Start/Stop. See src/finis.ts
  5. Simpel Web Server that can be used to Scan QR Code, or any other operations integrated with Wechaty. See src/start-web.ts

LIMITATIONS

  1. If an app has a web dyno, and that web dyno receives no traffic in a 30 minute period, the web dyno will sleep
  2. Dynos are restarted (cycled) at least once per day to help maintain the health of applications running on Heroku

SEE ALSO

Use Cases

  1. Friday BOT - https://bot-friday.herokuapp.com/
  2. OSSBot - https://oss-bot-dev.herokuapp.com/
  3. Mike BO - http://mike-bo.herokuapp.com/
  4. QiJi BOT - https://qiji-bot.herokuapp.com/
  5. Bot Ops - https://bot-ops.herokuapp.com/
  6. Rui Assistant BOT
  7. 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

Credit: https://stackoverflow.com/a/10231477/1123955

AUTHOR

Huan LI (李卓桓) <zixia@zixia.net>

Profile of Huan LI (李卓桓) on StackOverflow

COPYRIGHT & LICENSE

  • Code & Docs © 2018 Huan LI <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons