Required:
- Github account
- Heroku Account
- Time and coffee😜
Click for more Tutorial details
- Fork a repo
- Go to your fork repo settings » secrets. tap New Repository Secret to fill out the variable.
- Fill The require variable
HEROKU_EMAIL
: You heroku email which deployed as userbotHEROKU_API_KEY
: Your heroku api, get from Here. Scroll down, you will get it.HEROKU_APP_NAME
: Fill by unique name, must be lowercase letters, numbers, and dashes.
CONFIG_FILE_URL
: Your config.env file direct link, use secret gist for it. Copy THIS, and paste to any text editor. Remove the 2st line and for many information for fill a value Read the text inside there.- if you already done fill out a variable and value inside there. Copy All Text and open https://gist.github.com paste in there and give a name file as
config.env
, create a secret gist.
- Notice Important
- After create it, tap raw button then copy a raw link
- Paste raw gist link to
CONFIG_FILE_URL
, Remove commit id from a raw link - Before:
https://gist.githubusercontent.com/gudmeong/3346b1f800b88106f717cc417eb34688/raw/a244e7c2e9592f9503a2566353e2b6af9d2929d1/config.env
- After:
https://gist.githubusercontent.com/gudmeong/3346b1f800b88106f717cc417eb34688/raw/config.env
- After adding Require value in github repo secrets, Go to tab actions in your fork repository.
- Select Heroku Container as show bellow:
- Click on Run workflow and select sql-extended branch, then run a workflow
After deploy is finished without error, check your heroku app then switch dyno to on
We are using database heroku postgress sql
- open your heroku app a which deploying userbot, and select like pict below
- Submit then
Now Switch you dyno worker to for run a userbot
- You can change any value on CONFIG_FILE_URL (secret gist) or by heroku vars
- If you change any value on CONFIG_FILE_URL (secret gist), you need restart for apply new value
- Or if you change or add any value by
.set var
or by heroku vars no need restart, because userbot do auto restarting :p