Open Allanon29 opened 9 years ago
@Allanon29 we had things working in jruby, but its not officially supported yet. (Just haven't had time yet). The warning is saying that we don't have code reloading working in jruby yet (because we can't use forking like in MRI.) I want to implement class name based reloading like in rails, but its somewhat complicated and I'm trying to get the core stuff out the door first. For now I'm going to leave this open, I probably won't have time to get to this for a little while. Hopefully you can use MRI for a little while (In the past I ran most of my rails production stuff on jruby, so its a priority)
:+1: for class based reloading!
@ryanstout Thanks for the reply. jRuby support would be great. Many things happening on that side as well, like jRuby 9.0.0.0 came out recently, and Torquebox 4 beta1 is out.
BTW found this on Stackoverflow ( http://stackoverflow.com/questions/11818463/alternative-for-spawning-a-process-with-fork-in-jruby ):
# To mimic the Process.fork in MRI Ruby
module JRubyProcess
require 'ffi'
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function :fork, [], :int
end
pid = JRubyProcess.fork do
#internal_server.run
end
Thanks. Forking on the JVM isn't really an option though. You can see even from the stack overflow post that it doesn't really work. If you want to work on Jruby support, it shouldn't be too hard. I'm happy to help if you have time. I just don't have time on my end right now. (Gotta get volt-sql out the door first)
On Fri, Aug 21, 2015 at 12:22 PM, Allanon29 notifications@github.com wrote:
@ryanstout https://github.com/ryanstout Thanks for the reply. jRuby support would be great. Many things happening on that side as well, like jRuby 9.0.0.0 came out recently, and Torquebox 4 beta1 is out.
BTW found this on Stackoverflow ( http://stackoverflow.com/questions/11818463/alternative-for-spawning-a-process-with-fork-in-jruby ): `# To mimic the Process.fork in MRI Ruby module JRubyProcess require 'ffi' extend FFI::Library ffi_lib FFI::Library::LIBC attach_function :fork, [], :int end
pid = JRubyProcess.fork do
internal_server.run
end`
— Reply to this email directly or view it on GitHub https://github.com/voltrb/volt/issues/267#issuecomment-133521977.
I get this error when I try to access the homepage of a new volt app under jruby 9.0.0.0:
I also get the following warn message: "[WARN] Code reloading in Volt currently depends on
fork
. Your environment does not supportfork
. We're working on adding more reloading strategies. For now though you'll need to restart the server manually on changes, which sucks. Feel free to complain to the devs, we really let you down here. :-)"