By kda12489
I have a Flask application running on one of my droplets with nginx. I uploaded some html files and overwrote the ones that were there. The log in FileZilla says it was uploaded successfully but when I visit these pages in the browser they are still the old ones. Yes, I have cleared my cache in the browser…multiple times. I have also deleted one of the html files and restarted nginx and I was still able to visit that page. I have tried almost everything and I can not figure out whats going on. When I upload an updated js or css file, I don’t have this issue. It appears to only be a problem with my html files located in my templates folder.
Any help would be greatly appreciated! Time is of the essence since I am giving a presentation later covering this application.
Thanks!
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!
Hi! How are you running the Flask application? If you’re using Gunicorn, uWSGI, or a similar program, you might need to restart it before your changes can take effect. Since you mentioned that this is happening with the files that are located inside your templates directory, I suspect that this is the case and your app is simply not picking up the changes because it needs to be manually restarted.
This comment has been deleted
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.