If you're referencing 'my.css' directly have you added it to the list of files to be precompiled in application.rb
assets.precompile += ['my.css'] by default Rails will only precompile application.css and application.js John. On Wed, Jan 8, 2014 at 3:05 AM, richard schneeman < [email protected]> wrote: > Install this https://github.com/schneems/sprockets_better_errors and run > your dev environment. It will show you how you need to configure your app. > — > Sent from Mailbox <https://www.dropbox.com/mailbox> for iPhone > > > On Tue, Jan 7, 2014 at 8:02 PM, roror <[email protected]> wrote: > >> I've been reading stackoverflow for more than 4 hours now. I can only >> get application.js to compile on heroku. This is a very simple, static >> webapp I'm working on. My *.css.scss files only have one obvious field to >> isolate out compile-time failures. >> >> In my Gemfile and Gemfile.lock I have: >> group :production do >> gem 'rails_12factor' >> end >> >> In app/views/layouts/mycontroller.html.erb: >> I'm using >> <head> >> <%= stylesheet_link_tag "path/to/my.css" %> >> ... >> </head> >> >> Everything works fine on my localhost, but I cannot get my css on heroku. >> >> >> http://stackoverflow.com/questions/15354539/heroku-does-not-compile-files-under-assets-piplines-in-rails-4 >> >> http://stackoverflow.com/questions/20984600/cant-find-css-after-pushing-to-heroku >> http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets >> >> >> -- >> -- >> You received this message because you are subscribed to the Google >> Groups "Heroku" group. >> >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en_US?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Heroku Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en_US?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Heroku Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- ---- John http://about.me/johnbeynon/bio -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "Heroku Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
