Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.5 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.5 KB

Deployment Instructions (Heroku)

Follow these steps to deploy WZML-X-HK to Heroku:

1. Fork and Star the Repository

  • Click the Fork button at the top-right corner of this repository.
  • Give the repository a star to show your support.

2. Navigate to Your Forked Repository

  • Access your forked version of this repository.

3. Enable GitHub Actions

  • Go to the Settings tab of your forked repository.
  • Enable Actions by selecting the appropriate option in the settings.

4. Run the Deployment Workflow

  1. Open the Actions tab.

  2. Select the Deploy to Heroku workflow from the available list.

  3. Click Run workflow and fill out the required inputs:

    • BOT_TOKEN: Your Telegram bot token.
    • OWNER_ID: Your Telegram ID.
    • DATABASE_URL: MongoDB connection string.
    • TELEGRAM_API: Telegram API ID (from my.telegram.org).
    • TELEGRAM_HASH: Telegram API hash (from my.telegram.org).
    • HEROKU_APP_NAME: Name of your Heroku app.
    • HEROKU_EMAIL: Email address associated with your Heroku account.
    • HEROKU_API_KEY: API key from your Heroku account.
    • HEROKU_TEAM_NAME (Optional): Required only if deploying under a Heroku team account.
  4. Run the workflow and wait for it to complete.

5. Finalize Setup

  • After deployment, configure any remaining variables in your Heroku dashboard.
  • Use the /bsettings command to upload sensitive files like token.pickle if needed.