2.9 KiB
2.9 KiB
Deploying slam-mirrorbot on Heroku with Github Workflows.
Pre-requisites
- Token Pickle
- Heroku accounts. NOTE: Recommended to use 1 App in 1 Heroku account and Don't use bin/fake credits card, because your Heroku account will get banned.
Deployment
-
Give a star and Fork this repo then upload token.pickle to your forks, or you can upload your token.pickle to your Index and put your token.pickle link to
TOKEN_PICKLE_URL(NOTE: If you don't upload token.pickle uploading will not work). -
Go to Repository
Settings->Secrets -
Add the below Required Variables one by one by clicking
New Repository Secreteverytime.HEROKU_EMAILHeroku Account Email Id in which the above app will be deployedHEROKU_API_KEYYour Heroku API key, get it from https://dashboard.heroku.com/accountHEROKU_APP_NAMEYour Heroku app name, Name Must be uniqueCONFIG_FILE_URLFill This in any text editor. Remove the_____REMOVE_THIS_LINE_____=Trueline and fill the variables. For details about config you can see Here. Go to https://gist.github.com and paste your config data. Rename the file toconfig.envthen create secret gist. Click on Raw, copy the link. This will be yourCONFIG_FILE_URL. Refer to below images for clarity.
- NOTE: Remove commit id from raw link to be able to change variables without updating the
CONFIG_FILE_URLin secrets. should be in this form: https://gist.githubusercontent.com/username/gist-id/raw/config.env - Before:
19ba5ab5eb/config.env - After: https://gist.githubusercontent.com/anasty17/8cce4a4b4e7f4ea47e948b2d058e52ac/raw/config.env
- You only need to restart your bot after editing
config.envgist secret.
-
After adding all the above Required Variables go to Github Actions tab in your repo
-
Select
Manually Deploy to Herokuworkflow as shown below: -
Then click on Run workflow
-
Done! your bot will be deployed now.
NOTE
- Don't change/edit variables from Heroku if you want to change/edit do it in
config.envfrom your gist.
Credits
arghyac35for TutorialAkhileshNSfor Github Workflow method to deploy Heroku app





