Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Latest commit

 

History

History
73 lines (47 loc) · 2.93 KB

helper.md

File metadata and controls

73 lines (47 loc) · 2.93 KB

Deploy with github worklows

Required:

  1. Github account
  2. Heroku Account
  3. Time and coffee😜

STEP TO DEPLOY:

Click for more Tutorial details
  1. Fork a repo

Fork

  1. Go to your fork repo settings » secrets. tap New Repository Secret to fill out the variable.

secrets

  1. Fill The require variable
    • HEROKU_EMAIL : You heroku email which deployed as userbot
    • HEROKU_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.

example

  • 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.

gist

  1. Notice Important
    • After create it, tap raw button then copy a raw link

Raw

Raw2

  • 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
  1. After adding Require value in github repo secrets, Go to tab actions in your fork repository.
    • Select Heroku Container as show bellow:

heroku container

  1. Click on Run workflow and select sql-extended branch, then run a workflow

Run

After deploy is finished without error, check your heroku app then switch dyno to on

Setup Database

We are using database heroku postgress sql
  • open your heroku app a which deploying userbot, and select like pict below

postgressl

  • Submit then

Now Switch you dyno worker to for run a userbot

Little tip

  • 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

Tutorial Finish