I've come back to a project after a year and I'm stuck with my SPA web app not reflecting recent changes even after updating my code and rebuilding the Docker containers. My app is structured with a React frontend, Django backend, and Nginx as a reverse proxy, all within Docker on a VPS that I only have SSH access to. After making changes in a feature branch and merging them after passing all tests, I pulled the latest code on the VPS, took down the containers, and rebuilt them using Docker Compose. Despite this, the updated component is not showing up in the production site, even though I can see the changes in the files when I check them directly. I've cleared the cache, but the old content still appears. I can't delete any volumes because that would affect the live database. I'm puzzled as to why my updates aren't reflected on the site. Any thoughts on this?
3 Answers
Have you tried opening the site in incognito mode or a different browser? Sometimes caching can be tricky, and it might just be a local cache issue you're facing.
I suggest removing the frontend build volume instead of the DB one. Alternatively, look into setting up a multi-stage build in your Nginx Dockerfile to avoid having to share frontend builds via volumes in production.
It sounds like you might have caching issues somewhere. Try to clear your CDN caches if you're using one. Also, ssh back into your server and check if you're accessing the correct pod. You can test this by creating a simple file, like test.txt, to see if that gets served. Lastly, you might want to consider redeploying just the code without touching the database.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads