views:

39

answers:

1

Hi

How can I configure a Netbeans Ruby project so that it does not run a Ruby interpreter (a Ruby "platform"), but starts up rackup?

Thanks

A: 

I attempted to do something similar myself: to run my project through a Rack container (the way it is meant to run in production). I used trinidad as the rackup container (JRuby platform) and in the Ruby VM arguments in netbeans, I put:

-S trinidad -r config.ru

While this works fine from the terminal, it doesn't work at all from Netbeans and the errors are unhelpful.

Would appreciate a good answer to this one too. Running a specific class is not a useful way of running a Ruby web app intended for a Rack container.

Richard Conroy