Update heroku-guide.md

This commit is contained in:
ronin08 2021-08-22 08:39:06 +05:30 committed by GitHub
parent 5f75d42753
commit 8d3cf502de
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,12 +4,12 @@
- [token.pickle](https://github.com/Slam-Team/slam-mirrorbot#getting-google-oauth-api-credential-file) - [token.pickle](https://github.com/Slam-Team/slam-mirrorbot#getting-google-oauth-api-credential-file)
- [Heroku](heroku.com) accounts - [Heroku](heroku.com) accounts
- Recommended to use 1 App in 1 Heroku accounts - Recommended to use 1 App in 1 Heroku account
- Don't use bin/fake credits card, because your Heroku account will banned - Don't use bin/fake credits card, because your Heroku account will get banned .
## Deployment ## Deployment
1. Give stars 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 didn't upload **token.pickle** uploading will not work). 1. 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).
2. Go to Repository `Settings` -> `Secrets` 2. Go to Repository `Settings` -> `Secrets`
@ -17,10 +17,10 @@
3. Add the below Required Variables one by one by clicking `New Repository Secret` everytime. 3. Add the below Required Variables one by one by clicking `New Repository Secret` everytime.
* `HEROKU_EMAIL` Heroku Account email Id in which the above app will be deployed * `HEROKU_EMAIL` Heroku Account Email Id in which the above app will be deployed
* `HEROKU_API_KEY` Your Heroku API key, get it from https://dashboard.heroku.com/account * `HEROKU_API_KEY` Your Heroku API key, get it from https://dashboard.heroku.com/account
* `HEROKU_APP_NAME` Your Heroku app name, Name Must be unique * `HEROKU_APP_NAME` Your Heroku app name, Name Must be unique
* `CONFIG_FILE_URL` You must upload your `config.env` to https://gist.github.com, Check the steps here: * `CONFIG_FILE_URL` Fill [This](https://raw.githubusercontent.com/Slam-Team/slam-mirrorbot/master/config_sample.env) in any text editor , and remove the second line . Go to https://gist.github.com and paste your config data from the previous step . Rename the file to config.env and upload it . Click on Raw , copy the link and that's your CONFIG_FILE_URL. Refer to below images for clarity .
![steps 1 to 3](https://telegra.ph/file/1d8fec16516a87ba9d1ac.jpg) ![steps 1 to 3](https://telegra.ph/file/1d8fec16516a87ba9d1ac.jpg)
@ -30,7 +30,7 @@
4. After adding all the above Required Variables go to Github Actions tab in your repo 4. After adding all the above Required Variables go to Github Actions tab in your repo
5. Select `Manually Deploy to heroku` workflow as shown below: 5. Select `Manually Deploy to Heroku` workflow as shown below:
![Example Manually Deploy to Heroku](https://telegra.ph/file/38ffda0165d9671f1d5dc.jpg) ![Example Manually Deploy to Heroku](https://telegra.ph/file/38ffda0165d9671f1d5dc.jpg)