Skip to content

Heroku Support

AstroX10 edited this page Dec 28, 2024 · 1 revision

HEROKU SUPPORT GUIDE

1. Create a Heroku Account

Why?
You need a Heroku account to deploy and manage your app.

  • Create a Heroku Account.
  • Add your credit card details to enable eco dynos for cost savings. Heroku requires a payment method to prevent abuse but won't charge unless you exceed free tier limits.

2. Environment Setup

Why?
To configure and deploy your bot on Heroku.

  • Tap the deploy button:
    Click the link below to deploy the bot directly to Heroku.
    Deploy on Heroku

  • Fill in the environment variables:
    You’ll see a form to fill in required configuration details:

    • SESSION_ID: Enter the session key for your bot.
    • BOT_NAME: Specify the bot's name (e.g., AstroXstro).
    • SUDO: Enter the WhatsApp ID of the superuser(s) who can control the bot.
  • Deploy the app:
    Once you've filled in the variables, click Deploy App. The deployment process will take a few minutes.


3. Start the Bot

Why?
The app requires a worker process to keep running.

  • Navigate to the Resources tab in your Heroku dashboard for the app.
  • Locate the worker dyno, and toggle it on to start the bot.