Easily configure a performant, secure, and stable NGINX server.Learn More
Why do changes to nginx/unicorn/rails site not show up?
So I created a new default nginx/unicorn/rails droplet and then modified just the default homepage file (/home/rails/app/views/home/index.html.erb).
The change never showed up when I reloaded the page. Not in any number of browsers, not after emptying their caches. Today I found that the change DID show up after I restarted the unicorn service.
So my question is, why did that fix it, and why should it be necessary? I’ve reviewed the configuration files for both unicorn and nginx, and I can’t see anything that should be causing the pages to be cached…
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.×