There was a problem loading the comments.

How to Deploy Python Applications

Support Portal  »  Knowledgebase  »  Viewing Article

How to Deploy Python Applications

A Python application is a software program or system developed using the Python programming language. Python is a versatile, high-level programming language known for its readability and ease of use, making it a popular choice for various types of applications.

1. Log into your control panel.
For instructions on how to log into your control panel, see the links below:
For cPanel, click here
For DirectAdmin, click here

2. Navigate to the Setup Python App and click the icon to open the application.

In cPanel, this is located under the Software section.

7da85c3166a0ee1acb5736cb8d75620d58a49e463ce7fa638ee3e4fb391588fdbc6ef09cc510d745?t=f980ca25eca61945fa43baff4cb59f3f

In DirectAdmin, this is located under the Extra Features section.

5912533bf39f6454d870793c839b6ad714bfc75b6f216e305078b264f956d164bd2b34935f4ee9fd?t=52a502fbbec07694b72c208af873e97d

 

3. Click on Create Application button.

55f37ea9b3082d2a8f959c7d7356df49581917e4439d791cb3b6fdf3edbc34275b1661082b9cee89?t=078a02fcb8cbefa19170e8198e6baacd

 

4. Complete the form with your preferred details.

Python Version - The version of Python your application will utilise.

Application root - The directory where all your application files will be stored.

Application URL - The URL which will serve the application.

Application startup file - The file path which will serve the .py file. (Required to entire the file path and file name)

Application entry point - You can specify the object to call for. If none is specified, cPanel will create one by default.

Environment variables - You can add environment variables for your application.

b041a0a72b91e36c3425f67a5385c5335d08e0d7855d4f6a74ea4258fc4fc7b0e4dc4def28513977?t=d2141bd2a9d08b2f12d9ba907238c604

Once completed, click the Create button.

 

6. Click the Run Pip Install button (used to install/reinstall/uninstall PyPI packages) and then click the Save button.

228d3800119c225772ddc58a494862fa11e18a38674fcc470e9827353e5cd13462fa0cd3d9fd1b39?t=b7c8e5c61f47ee2119d1ec6708544796

 

7. On the same page, click the Start App button to run the application.

a3a1a9561948b5b9d80eb43a4e23a9bb30647981661264e1b05d2b0b79fe4739efa21320dfe81a07?t=88c2d4c9003a332ae983910c590dce4c

 

 

That's it. You have deployed your Python application.

Did you find this article useful?