Problem with Rails 3.1 and Heroku

24 views
Skip to first unread message

Scott

unread,
Dec 23, 2011, 12:14:05 PM12/23/11
to Blueprint CSS
I've searched through this group and found bits and pieces of a
solution to my problem, but haven't found anything that really works.
Here is my issue.

I'm running Rails 3.1 and deploying to the Heroku cedar stack.

I have Blueprint in my assets/stylesheets directory

When I try adding this to my application template:
<%= stylesheet_link_tag 'blueprint/screen', :media => "screen,
projection" %>
<%= stylesheet_link_tag 'blueprint/print', :media => "print" %>

And run this at my command prompt:
RAILS_ENV=production bundle exec rake assets:precompile

And then deploying I'm getting an error on Heroku that says "blueprint/
screen.css isn't precompiled", yet when I look in the public/assets
directory it's there and it's appearing in the manifest.

If I don't put anything in my application template and let Rails find
it, I'll run the precompile, deploy and everything is fine. So that's
alright. However, I'm getting the URL path on every link. Some reading
shows that I need to add ":media => "print" and "screen, projection"
to my template, but every time I add the lines to the template Heroku
won't load at all because the files aren't precompiled even if I've
precompiled them.

HELP!

Thanks in advance

Scott
Reply all
Reply to author
Forward
0 new messages