Question

Updated html files uploaded successfully but not displaying on website

Posted September 5, 2017 1.9k views
NginxUbuntu 16.04

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

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.

Submit an Answer