Skip to content

Instantly share code, notes, and snippets.

@tonyhuynh
Last active August 29, 2015 14:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonyhuynh/bf157f12813f26736513 to your computer and use it in GitHub Desktop.
Save tonyhuynh/bf157f12813f26736513 to your computer and use it in GitHub Desktop.
jRuby + Pow
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