Image showing as blank in Rails 3.1 on Production (Heroku)?

Remove this line from production. Rb: config. Action_dispatch.

X_sendfile_header = "X-Sendfile I should also align the settings in your config files with those in section 9 of the pipeline guides Sendfile headers contain information for the upstream webserver of where to find the file (on the file system) to serve it. This removes the load from the backend (Rails/Sprockets). When sendfile is on the HTTP response contains no body (it is zero length) which is why you see nothing On heroku the nginx servers do not have access to the application filesystem, so this won't work See this note on the Heroku dev site re sendfile If you are using heroku this document outlines the best options for using the pipeline effectively.

Remove this line from production. Rb: config. Action_dispatch.

X_sendfile_header = "X-Sendfile" I should also align the settings in your config files with those in section 9 of the pipeline guides. Sendfile headers contain information for the upstream webserver of where to find the file (on the file system) to serve it. This removes the load from the backend (Rails/Sprockets).

When sendfile is on the HTTP response contains no body (it is zero length) which is why you see nothing. On heroku the nginx servers do not have access to the application filesystem, so this won't work. See this note on the Heroku dev site re sendfile.

If you are using heroku, this document outlines the best options for using the pipeline effectively.

I removed that line and also made sure that the lines mentioned on the linked page are present in my files. I still have the same issue on the heroku live site where it doesn't show the image. Any idea why?

– alik Sep 30 at 19:20 hmm actually, scratch that, it just worked. I think it was cacheing earlier – alik Sep 30 at 20:41.

I have an issue with background images not showing up in production mode in a Rails 3.1 app (3.1.0. I'm also using sprockets 2.0.0 and passenger 3.0.8. My stylesheet is .

Scss and uses image_tag('...') in the background section. When I deploy I am precompiling the assets. My production server is using Apache2 with Passenger, with the application deployed to a sub URI.

The application is actually deployed to /srv/applications/myapp and I've created a symbolic link from /srv/www/myapp to /srv/applications/myapp/current/public. Actually, if I change the URL as above using edit declaration in Opera, it does show the logo correctly. This suggests to me that I'm referencing the image correctly, and it's being correctly precompiled.

The actual stylesheet is fine so I'm also picking up the assets correctly. Just seems as if the RailsBaseURI is being missed out the url path. I've tried all sorts in the stylesheet - using .

Erb, asset_path, /myapp/logo. Png - and nothing works. It all works fine in development mode with the thin server.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions