excellent - although rails_12factor is setting config.serve_static_assets = true for you already.
https://github.com/heroku/rails_serve_static_assets/blob/master/lib/rails_serve_static_assets/railtie.rb#L4 On Wed, Jan 8, 2014 at 5:44 PM, roror <[email protected]> wrote: > That was absolutely it, Keenan. Thank you! In > config/environments/production.rb, I've now changed the boolean to true for: > config.serve_static_assets = true > > and added a regex I found online to include ALL css and js files > config.assets.precompile += %w( *.css *.js ) > > I lost my workflow now though. It's much more difficult to prototype > without deploying to heroku. > > > On Wednesday, January 8, 2014 1:40:45 AM UTC-8, Keenan wrote: > >> Hi john >> >> Make sure your CSS file is included in your config/environments/ >> production.rb >> >> Look for a commented out section mentioning application stylesheets and >> java scripts. maybe precompile asset pipeline? >> >> It bites people all the time and there are currently discussions on how >> to fix in rails. Ruby5 mentioned a gem recently. >> >> Best of luck >> >> Ping me if you can't find and I'll track down when I get to a computer. >> >> Best of luck >> Keenan >> >> >> On Tue, Jan 7, 2014 at 9: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.
