MateoC
By:
MateoC

Why does my page change edits after I refresh it?

August 6, 2016 597 views
Ruby on Rails Deployment Ubuntu

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?

3 comments
  • 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".

2 Answers

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

Have another answer? Share your knowledge.