Skip to content

Instantly share code, notes, and snippets.

@hienvd
Created October 30, 2015 11:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hienvd/faf62e1ca5f896d745ca to your computer and use it in GitHub Desktop.
Fix can not start rails server when upgrade sprockets to 2.12.3
Hi,
I got it sorted. Here is what I did to fix it:
I found a revision in the Sprockets Github repo
(https://github.com/sstephenson/sprockets/commit/743c1b1a6433195e440e2d863e5d4767cc41271a)
when searching for a fix for the undefined method error relating to
default_mime_type. I then applied this change to the following ruby
scripts
in the sprockets 2.11.0 gem directory: jst_processor, sass_compressor,
closure_compressor, uglifier_compressor, sass_template, scss_template.
I then edited my GemFile to activate therubyracer within my gem
environment.
Thanks for your assistance.
Peter
from: https://www.ruby-forum.com/topic/4460060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment