Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recommended development web server for Ruby on Rails 3

What web server would you recommend for Ruby on Rails 3 web development on Linux? How about Windows?

like image 291
Alpha Sisyphus Avatar asked Dec 26 '10 20:12

Alpha Sisyphus


1 Answers

I'd recommend the Thin server. Works great both on Linux and Windows. And it's very easy to install: gem install thin. If you are using Rails 3, you may want to add it do your Gemfile instead:

group :development do
  gem "thin"
end

And then run bundle install.

Once it's installed, you can run it with: rails s thin.

I find it a very fast and clean choice.

Just a note: thin depends on the eventmachine gem. I had a hard time making it work on Windows. You might want to link it to this specific ref in github to avoid trouble:

gem "eventmachine", :git => "http://github.com/eventmachine/eventmachine.git", :ref => "6c7997798"

As far as I remember, the last version of eventmachine does not build on Windows.

like image 74
Wagner Maestrelli Avatar answered Oct 17 '22 08:10

Wagner Maestrelli