Question
Why does my page change edits after I refresh it?
Let me clarify; I have a rails project that I just created from a git clone. I edit the files on Sublime 3 using an SFTP connection. Every time I edit a file, I refresh the page to see my edit(s) work. When I refresh a second time, I see what my edits looked before I made them. I can continue this cycle. The only way I can solve this is by turning off my droplet, and then turning it back on. Although this way works, it gets annoying quick, and I feel like I am doing something wrong. Any advise?
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.
×
Hi @MateoC,
Does restarting the rails application put the changes into effect? Could you perhaps also share a little more on the server, versions, and perhaps the application you cloned?
Yes restarting the application works, I used to power off the server, but now I just do “service unicorn restart”
Yes, restarting the application works. I used to power off the server but now I just do “service unicorn restart”.