kda12489
By:
kda12489

Updated html files uploaded successfully but not displaying on website

September 5, 2017 260 views
Nginx Ubuntu 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!

2 Answers

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.

  • Yea I figured it out a couple days ago, Had to restart gunicorn with $ kill -HUP masterpid. Thanks!

Have another answer? Share your knowledge.