Skip to main content



In this video, we will see,
How we can deploy Web software written in Python flask framework on a Cpanel shared web hosting.

Tutorial + Resource Code:

Action 1:
Click on the “Setup Python Application” icon.

Stage 2:
Press the “Make Software” button.

Stage 3:
– Pick out the python edition you desire to use.
– Enter the directory that the python software need to be mounted to. This is route is relative to the root listing of the world wide web hotel and will create the specified directory if it does not exist.
– Enter the address the software need to be positioned on. If it ought to obtainable straight on your domain, go away the field blank.
– Enter the title of the file to run. This have to backlink “Application Entry Level” (see position 5) with the application alone.
– For example, assuming that this illustration operates a Flask server, this can be carried out by defining “application = Flask (__ identify__)” in the specified file.
– Enter the identify of the variable containing the server.
– This is the path to in which the Phusion Passenger log file is published.
– Below natural environment variables can be extra for python installation if needed.
– When all fields are crammed in as ideal, press the “Create” button to set up the application.

Phase 4:
You can now make improvements and deal with the python software.

– This is the command you input in the terminal to enter the virtual surroundings that is set up for the software. To set up packages via pip, this command should be operate 1st.
– These buttons allow you to begin, end, and restart the software.
– If you have included a configuration file (ref. Stage 4), for instance, a “prerequisites.txt” manufactured with pip, you can install the listed offers by urgent this button.
– Right here you can incorporate configuration information for the python software.
– Right here you can operate python script found on Webhosting. This is beneficial if you do not have obtain to the terminal and want to run python script to do set up, for case in point to make a superuser in Django. The script is run in the virtual natural environment of the application.
– These buttons enable you to help you save or discard variations as well as delete the whole software.

Github:

Stay in touch
Take a look at Our Web site:
Fb Website page:
My Portfolio:
#BappyTechTips

15 Comments

Leave a Reply