documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

#warn broken on Rails 3 if no JRE installed #60

Closed boof closed 14 years ago

boof commented 14 years ago

When I try to run an application that uses Jammit with Rails 3.0.0.rc2 and no java runtime environment is installed the whole application cannot be started because warn is called before Rails initialized the logger.

jashkenas commented 14 years ago

Thanks for letting me know. Here's a patch that simply stops trying to use the Rails logger, and writes the warning to $stderr instead.

http://github.com/documentcloud/jammit/commit/8f934928d6228147e86db483c59d2d2a23f3732f

Closing the ticket.

gosuri commented 14 years ago

Don't forget to fetch the latest changes, specify the below in your Gemfile

config.gem "jammit", :source => "git://github.com/documentcloud/jammit.git"