Deploy a Python application (such as Django or Flask) from your GitHub repository to your iPanel website.
Steps
-
Create a Python website in iPanel if you have not already.
[screenshot: python website created]
-
Navigate to your website management page and click the GIT card on the Home tab.
[screenshot: git card on home tab]
-
Connect your GitHub account if not already connected.
[screenshot: connect github if needed]
-
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]
-
Click Clone to download the repository to your server.
[screenshot: clone button]
-
After cloning, click Deploy and confirm the deployment.
[screenshot: deploy button and confirmation]
-
Go to the Python tab and click Install from requirements.txt to install your dependencies.
[screenshot: install from requirements.txt button]
-
Click Restart on the Python tab to start your application.
[screenshot: restart button on python tab]
requirements.txt is in the document root and includes all dependencies your application needs.