Rubytastic
Rubytastic

Reputation: 15501

carrierwave in production 404 not found on all carrier wave uploaded images

Im using carrier wave to upload assets to my app they are stored in /public/uploads/photos/file/user_id/user_id.jpg to keep things simple.

Only in production I get 404 for all those images. I tried chmod 777 uploads -R * as last resort but that does not help.

Do I have to set something up I'm missing here to make it work, because these assets are outside the asset pipeline?

Upvotes: 3

Views: 1855

Answers (1)

Rubytastic
Rubytastic

Reputation: 15501

Solution:

Had to set in /environments/production.rb

  config.serve_static_assets = true

Upvotes: 9

Related Questions