New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“cache: [GET /] miss” in production using WebRick #4807
Comments
Did you see any problem in production.log ?
|
Nope, there are no updates when loading the page in production mode. |
Umm.. I attempted to reproduce it , but I could not reproduce this issue. Please serve us a minimum app to reproduce this issue ? |
@kennyj I think I have discovered the source of the problem: If you delete the Try it:
Edit app/assets/javascripts/application.js and delete the line Edit app/views/home/index.html.erb and add this at the end:
Edit config/routes.rb and replace Now precompile assets:
Run the server in development mode:
Now stop the server and start it in production mode: |
Please edit
and precompile again. |
It's work fine in my box... It's odd.
|
Thanks @kennyj, you are right, it works fine, I forgot to enable the serve_static_assets option. |
I have the same problem. What version do I have to use to fix it? I'm on Rails 3.2.1, Mac, Ruby 1.9.3. |
I cannot test my website in production mode using WebRick, as it is raising cache errors. In development and testing modes everything works perfectly.
I have set this option in
config/environments/production.rb
:And then I ran:
Now I start up the server:
And when I go to
http://localhost:3000
I get "We're sorry, but something went wrong.". In the terminal this is what it outputs:I'm stalled here. I have no clue in what to do.
The text was updated successfully, but these errors were encountered: