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?

Subscribe
Share

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”

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?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

This question was answered by @MateoC:

Yes restarting the application works, I used to power off the server, but now I just do “service unicorn restart”

View the original comment

This comment has been deleted