rails beginner here
I am trying to set an app to production but having big issues with the asset pipeline. Under development every asset is generated under /assets/blabla.extension
However, I am running nginx and when running rake assets:precompile it creates assets under /public/assets
as it should. But when I visit my app it generates urls like /application.css
and not /assets/application-digestq12343.css
as it should.
I think there is an easy fix to this problem.. but I cannot find it. Please help me!
Update: From the documentation I read that Sprockets "default" is /assets but it certainly isn't in my application. I use the latest version of rails. Can the documentation be outdated? http://edgeguides.rubyonrails.org/asset_pipeline.html
Even if I add config.assets.prefix = "/assets"
to my production it would still mean that I would not load the assets since the digest would be missing.
rails s
or with external web server? – user2895892