Which HTTP web server can I use to debug ruby code using Rubymine 3.0.1?
I've being using开发者_JS百科 Mongrel with Rails 2.3.X and Ruby 1.8.7 without problems, but when I switch to Ruby 1.9.2 and Rails 3, I'm having problems with mongrel to debug.
Webrick is just slow, so, do you know any alternatives? Do you know how to fix mongrel to successfully debug rails app using rubymine 3.0.1?
RubyMine 3.1 is out now and supports a number of different servers. Under the "Run" menu, select "Edit Configurations" then go to "Defaults->Rails". There you can choose between:
- WEBrick
- lighttpd
- mongrel
- thin
- trinidad
- unicorn
- glassfish
I couldn't get Defaults->Rails changes to affect my different configs that were set to 'Default', but I did have success changing the discrete config ('development') directly. Note: For Mongrel you need to have this in your gemfile:
gem 'mongrel', '1.2.0.pre2'
I'm using RM 3.1.1, Rails 3.0.9 and Ruby 1.9.2.
精彩评论