Can't launch simple Sinatra app using rackup and jRuby (no response from web server)

前端 未结 4 1512
梦谈多话
梦谈多话 2021-02-05 17:52

I\'ve got a Sinatra \"hello world\" app that I am trying to run using jRuby. It works when I run the app, but not when I run rackup. Can anyone tell me what is going on here?

4条回答
  •  醉酒成梦
    2021-02-05 18:42

    I have slightly similar situation. But the difference is that, my Jruby + Sinatra rackup app is finally starts responding.

    But it takes lots of time, sometimes it starts responding 5 minutes after app start. I found out, that after app start port is not listened for some period time.

    If we make netstat -an it will not show our app port. Actually I don't know the reason of such behavior, but I'll dig for it.

提交回复
热议问题