I set up a new Ruby on Rails on Ubuntu (nginx + unicorn) droplet. The only thing I did was change the html in the default home page (/home/rails/app/views/home/index.html.erb).
Now when I load and reload the home page at http://104.131.230.147/ it switches between the original home page and the new one. I have checked with others to see if the behavior is the same for them and it is.
I’ve tried rake tmp:cache:clear rake assets:clean
What other options are there?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I have this same problem with Django+Ubuntu. I’m thankful that at least restarting gunicorn gets a temporary fix. I can’t seem to find any solution to this and I’m amazed that more people don’t have this problem.
Where is the caching coming from? Also, where is this “config.action_controller.perform_caching = false” change made?
I tried the suggestions here: http://stackoverflow.com/questions/2462889/ruby-on-rails-clear-a-cached-page
Does anyone have experience with creating a droplet using this image? I am wondering if the image is broken.
Would it be better to set up a rails server starting with a straight Ubuntu 14.x Linux Distro image?
Are you restarting the unicorn server after changing the file? Run:
service unicorn restart
Also make sure that a copy of the page isn’t being cached in /home/rails/public/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.