I followed the guide here, which worked fine.
/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04
But when I change content within the myproject.py file nothing changes!
eg:
return "<h1 style='color:blue'>Hello There!</h1>"
to
return "<h1 style='color:blue'>Hello World!</h1>"
I am hoping there is some kind of setting that will just use the new pages as I have uploaded them and not cache any code files.
?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
What you need to do is change your uwsgi.ini file and add:
touch-reload = /home/path/to/app.py
Then run touch app.py, this will reload uWSGI without having to restart it manually.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.