pyTele-Loader
pyTele-Loader copied to clipboard
A Lightweight .sh & .py Script to make your Repo Deployable to Heroku.com, Koyeb.com, Render.com, etc. and Auto Update on Restart.
🎛 pyTele-Loader & Updater
A Simple .sh & .py Script with python web to make your Repo Deployable to Heroku.com, Koyeb, Render, Scalingo, etc.. & Auto Update and Fetch your Repo Updates / Commits on Restart with your Repository URL.
[!WARNING] This Repo Only tends to Make Deployment as easy as Possible, it doesn't make Banned Repo Unban or vice versa.
Heroku One-Click Deploy
Koyeb One-Click Deploy
Render One-Click Deploy
Scalingo One-Click Deploy
[!CAUTION] Broken,
python3not found !
[!NOTE] More Services will be Added soon. If want to suggest supporting sites, open a Issue to Support that Site !
📑 Heroku CLI Guide (Optional)
Learn moreClick Here to Expand
Step 1 : Git clone this Repo and change directory
Make sure git is Installed in your system or quick run
apt-get install git curl -y
git clone https://github.com/SilentDemonSD/pyTele-Loader && cd pyTele-Loader
Step 2 : Now Install Heroku in your Sytem or checkout Official Heroku Deploy Docs, or Download via apt-get or npm
For Android : Use
termuxfor CLI usage
curl https://cli-assets.heroku.com/install.sh | sh
Step 3 : Login into Heroku and Log In CLI via Browser
heroku login
Step 4 : Create Heroku App and specify region with App Name
heroku create --region us APP_NAME
Notes:
--region eufor Europe Server and--region usfor United States Server.APP_NAMEshould be replaced with your unique app name (Optional). If not given it generates a random name.--stack containerfor setting stack to container for Dockerfile.--buildpack heroku/pythonfor using build slug for repo deploy and build.--team TEAM_NAMEfor creating App in Teams
Step 5 : Set Local git remote for Heroku.
heroku git:remote -a APP_NAME
Step 6 : Setup Config Variables for the script to run.
heroku config:set REPO_URL=https://github.com/user/repo REPO_BRANCH=main START_CMD="python -m bot"
Step 7 : Now push to Heroku via git forcefully to build.
git push heroku main -f
All Heroku CLI Commands : Click Here
Config SetUp
REPO_URL- Deploy Repository URL, add Private Token if Repo is PrivateREPO_BRANCH- Repo Branch, you want to deploy with your REPO_URL.START_CMD- Trigger Command for your Bot to Run.Examples :
python -m bot(-mis for inside Dir startup) orpython main.pyorbash start.shBASE_URL- Default Web service, Add Base URL to ping server every 10minsPORT(Optional) - Not necessarily needed until you specify a different port.
Important Notes:
- Repo made for Non-Docker Repos but can be customized for Docker Repos (Read Ahead)
Heroku Guide :
- If your Repo Uses additional Docker packages or Images, Add
Dockerfilein root directory and also addheroku.ymlfile with content as:build: docker: web: Dockerfile run: web: chmod +x hk_deploy.sh && ./hk_deploy.sh- Also Run a extra Command before Deploy or set stack at app creation.
Available Stacks :heroku stack:set container -a APP_NAMEcontainer(Dockerfile),heroku-22(Default),heroku-20(python-3.8.16 Version Usage) and More
- Also Run a extra Command before Deploy or set stack at app creation.
- Default process type is
web, If you use other types likeworker.- Replace
webwithworkerfromheroku.ymlandProcfilefiles.
build: docker: -- web: Dockerfile ++ worker: Dockerfile run: -- web: chmod +x hk_deploy.sh && ./hk_deploy.sh ++ worker: chmod +x hk_deploy.sh && ./hk_deploy.sh - Replace
References
- Concept & Made by SilentDemonSD
- Helped via git docs & AI