Hello,
I have installed a Python application using cPanels "Setup Python App" feature on a CloudLinux server.
Id like to have the app automatically reload whenever I make changes to the .py files in the application root folder. Of course, clicking the RESTART button always updates the .py files, but it would be better if I could skip this step and have it done automatically.
It seems that the app may in fact restart automatically on its own after some time period... maybe every hour? I say this because sometimes the .py files are reloaded even though I never restarted the application.
I have tried various solutions with no success.
For instance, I have added three new variables to the "Environment variables" section of the Python application editor:
Name: FLASK_APP Value: app.py
Name: FLASK_DEBUG Value: true
Name: FLASK_ENV Value: development
But, they have no effect. I also tried adding these environmental variables into the bin/activate file (eg: export FLASK_ENV="development" ) .
I did a search and only found this:
https://How to restart Passenger WSG... command line?
Is what I want to accomplish possible?
I have installed a Python application using cPanels "Setup Python App" feature on a CloudLinux server.
Id like to have the app automatically reload whenever I make changes to the .py files in the application root folder. Of course, clicking the RESTART button always updates the .py files, but it would be better if I could skip this step and have it done automatically.
It seems that the app may in fact restart automatically on its own after some time period... maybe every hour? I say this because sometimes the .py files are reloaded even though I never restarted the application.
I have tried various solutions with no success.
For instance, I have added three new variables to the "Environment variables" section of the Python application editor:
Name: FLASK_APP Value: app.py
Name: FLASK_DEBUG Value: true
Name: FLASK_ENV Value: development
But, they have no effect. I also tried adding these environmental variables into the bin/activate file (eg: export FLASK_ENV="development" ) .
I did a search and only found this:
https://How to restart Passenger WSG... command line?
Is what I want to accomplish possible?
Comment