allaire
allaire

Reputation: 6045

Assets pipeline images subdirectories heroku

Ok so I have a subdirectory called icons in assets/images/icons.

In my css, which use sass, if I do:

background: transparent image-url("mobile.png") no-repeat left center;

And then push to heroku, it works flawlessly, the background displays no problem.

But if I do:

background: transparent image-url("icons/mobile.png") no-repeat left center;

The background simply does not show up.

What I found so far:

If you need any more informations, just ask away.

thanks!

EDIT

When I rename the subdirectory to something else than "icons", it works :O, any ideas? lol...

Upvotes: 2

Views: 816

Answers (1)

Mark Swardstrom
Mark Swardstrom

Reputation: 18080

Ha - just had the same error and it was because Icon? was in ~/.gitignore_global. I must have added that way back, an OS generated file was the comment.

Note - you can look in the asset precompile directory on heroku

$ heroku run bash
$ ls public/assets

to see if your assets were compiled at all. By default, all image subdirectories should be added. This may help figure out if there are other issues.

Upvotes: 1

Related Questions