It just got merged today! I'm glad you got your app working, also thanks for trying my gem :)— Sent from Mailbox for iPhone
On Wed, Jan 8, 2014 at 8:32 PM, roror <[email protected]> wrote: > oh missed that. just tried it out and it's working great! may app now has > that gem. i hope it gets into rails master asap! > On Wednesday, January 8, 2014 12:15:46 PM UTC-8, richard schneeman wrote: >> >> It appears you skipped my previous suggestion. If you add in >> https://github.com/schneems/sprockets_better_errors you'll never make >> this mistake again, it checks for this problem in development so you don't >> deploy broken code to production. Parts of it have already been merged into >> Rails master. >> >> Not only will it find the error, it also tells you how to fix it. >> >> >> On Wed, Jan 8, 2014 at 1:56 PM, roror <[email protected] <javascript:>>wrote: >> >>> i'll remove that change then to make things as clear as possible. thanks >>> again! >>> >>> >>> On Wednesday, January 8, 2014 11:53:39 AM UTC-8, John Beynon wrote: >>> >>>> 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-lin >>>>>>> ks-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] <javascript:> >>> 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] <javascript:>. >>> 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. -- -- 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.
