sam / harbor

Harbor is a Ruby Web Framework.
https://github.com/sam/harbor
MIT License
3 stars 6 forks source link

Add harbor server command #55

Open sam opened 12 years ago

sam commented 12 years ago

Add harbor server command. For now just default to mizuno for JRuby and rackup for MRI.

sam commented 12 years ago

Added for MRI in 9c9e57c787dc7a02d714b403391c30418f6f69a5.

Having trouble with rackup under JRuby. Getting a vague ERROR -1 message on request and no response. Actual web-servers work fine so I'm guessing it's something in jruby-rack. I'll call this one done and the step beyond will be in the 1.1 milestone with Jetty integration.

fgrehm commented 12 years ago

I tried running the command under JRuby but it didn't work out:

LoadError: no such file to load -- /home/fabio/projetos/oss/harbor/lib/harbor/commands/../jetty
           require at org/jruby/RubyKernel.java:1042
  require_relative at builtin/prelude.rb:49
            (root) at /home/fabio/projetos/oss/harbor/lib/harbor/commands/server.rb:4
           require at org/jruby/RubyKernel.java:1042
            (root) at /home/fabio/projetos/oss/harbor/lib/harbor/commands/server.rb:15
              load at org/jruby/RubyKernel.java:1068
            (root) at /home/fabio/.rvm/gems/jruby-1.6.7/bin/harbor:19

Are we missing Jetty jar or something like that?

I'm running jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java] down here

fgrehm commented 12 years ago

BTW, rackup seems to be working fine down here with that JRuby version + rack 1.4.1 and jruby-rack 1.1.4

sam commented 12 years ago

@fgrehm The Jetty stuff isn't done yet. So that's why it doesn't work under JRuby.

Maybe it's just my version of jruby-rack that was having issues with Rackup then.