Skip to content

Instantly share code, notes, and snippets.

@Hrishi2861
Created June 4, 2024 19:33
Show Gist options
  • Save Hrishi2861/3f04a05b4d86241a454bd284ed1c3dee to your computer and use it in GitHub Desktop.
Save Hrishi2861/3f04a05b4d86241a454bd284ed1c3dee to your computer and use it in GitHub Desktop.
- Install CLI using official docs: https://devcenter.heroku.com/articles/heroku-cli
- Clone this repo: https://github.com/Hrishi2861/Terabox-Downloader-Bot && cd Terabox-Downloader-Bot
- Now add your variables in config.env
- After adding your private files: git add . -f
- Then commit your changes: git commit -m init
- Login to heroku: heroku login
- Create heroku app: heroku create --region us YOUR-APP-NAME
- Add remote: heroku git:remote -a YOUR-APP-NAME
- Create container: heroku stack:set container
- Push to heroku: git push heroku main -f
### Extras
- To delete the app: heroku apps:destroy YOUR-APP-NAME
- To restart dyno: heroku restart
- To turn off dyno: heroku ps:scale web=0
- To turn on dyno: heroku ps:scale web=1
- To set heroku variable: heroku config:set VARNAME=CONFIG_FILE_URL
- To get live logs: heroku logs -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment