imbra - How to Deploy a Python App From GitHub in iPanel

Deploy a Python application (such as Django or Flask) from your GitHub repository to your iPanel website.

Steps

  1. Create a Python website in iPanel if you have not already.

    [screenshot: python website created]

  2. Navigate to your website management page and click the GIT card on the Home tab.

    [screenshot: git card on home tab]

  3. Connect your GitHub account if not already connected.

    [screenshot: connect github if needed]

  4. In the add deployment form, select your GitHub Account, choose your Python repository, and select the branch.

    [screenshot: add deployment form with python repo selected]

  5. Click Clone to download the repository to your server.

    [screenshot: clone button]

  6. After cloning, click Deploy and confirm the deployment.

    [screenshot: deploy button and confirmation]

  7. Go to the Python tab and click Install from requirements.txt to install your dependencies.

    [screenshot: install from requirements.txt button]

  8. Click Restart on the Python tab to start your application.

    [screenshot: restart button on python tab]

Tip: Make sure your requirements.txt is in the document root and includes all dependencies your application needs.

Related Articles