Last active
August 29, 2015 14:01
jRuby + Pow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pow does not support jRuby. The error you'll hit is "IOError: Socket is not connected". This PR describes a hack to get around it: https://github.com/josh/nack/pull/32 | |
Here are the steps: | |
1. Open ~/Library/Application\ Support/Pow/Current/node_modules/nack/lib/nack/server.rb | |
2. Replace line #132 with the following: | |
# OLD: sock.close_read | |
begin | |
sock.close_read | |
rescue IOError | |
raise unless RUBY_ENGINE == 'jruby' | |
end | |
3. Profit! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment