Code Monkey home page Code Monkey logo

pytele-loader's Introduction


๐ŸŽ› 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

Deploy

Koyeb One-Click Deploy

Deploy to Koyeb


Render One-Click Deploy

Deploy to Render


Scalingo One-Click Deploy

Caution

Broken, python3 not found !

Deploy on Scalingo


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 termux for 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 eu for Europe Server and --region us for United States Server.
  • APP_NAME should be replaced with your unique app name (Optional). If not given it generates a random name.
  • --stack container for setting stack to container for Dockerfile.
  • --buildpack heroku/python for using build slug for repo deploy and build.
  • --team TEAM_NAME for 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 Private
  • REPO_BRANCH - Repo Branch, you want to deploy with your REPO_URL.
  • START_CMD - Trigger Command for your Bot to Run.

    Examples : python -m bot ( -m is for inside Dir startup) or python main.py or bash start.sh

  • BASE_URL - Default Web service, Add Base URL to ping server every 10mins
  • PORT (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 Dockerfile in root directory and also add heroku.yml file 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.
      heroku stack:set container -a APP_NAME
      Available Stacks : container (Dockerfile), heroku-22 (Default), heroku-20 (python-3.8.16 Version Usage) and More
  • Default process type is web, If you use other types like worker.
    • Replace web with worker from heroku.yml and Procfile files.
    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

References

  • Concept & Made by SilentDemonSD
  • Helped via git docs & AI

pytele-loader's People

Contributors

silentdemonsd avatar

Stargazers

Shabbir Mahmud avatar  avatar Tharindu Prabath avatar  avatar  avatar  avatar  avatar  avatar A Jakhar avatar Irene R. Meyers avatar Developer avatar Security Panda avatar Ranjan Singh avatar  avatar Brainded Kazuma avatar Moinul Hasan avatar Hank Blaze avatar  avatar SivaSoft avatar  avatar Unagi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.