Server installation python environment
Find the software store
Apply search input: python
Install Python Project Manager 2.4
Turn on homepage display
Return to the homepage, find the python manager and click to enter
Install the corresponding python version
The server can come to an end here.
Develop server-side applications locally and upload them to the server
To export dependent libraries of written python applications, you need to export requirements.txt as standard. This will be used later.
Pay attention to the red box part of the screenshot
Install the pipreqs library locally
pip install pipreqs
Export dependent libraries
pipreqs ./ --encoding=utf-8
Pagoda adds python project
Create a new folder pythonprojs in the www directory
Add project folder
Upload code
Be sure to bring the requirements.txt file with you
Return to the Pagoda homepage and open the python manager to add a new project
The parts in red boxes are areas that need to be changed.
Here we first shut down the daemon process
Confirm and start installing the dependent libraries in requirements.txt
Download dependency interface
How to start the daemon process
First enter the software store to search for supervisor and install it.
After installation, you can go back to the python project and start the daemon process.
That’s how easy it is!