fltw9q
Last Updated: February 25, 2016
·
6.556K
· rshetty

Use 'Thin' as your default Server in Rails App

Rails comes with 'WeBrick Server' to run your Rails Application.
When you run 'rails s' in your terminal, by default WeBrick will run.

If you want to have a thinner lighter and faster version of the rails server, you can use an alternative rails server 'thin'

To Install it add this to your GemFile

gem 'thin'

Do a

bundle install

And then run 'thin' rails server in your terminal as

rails server thin

Thats it....

2 Responses
Add your response

4136

you can just use rails server, if you have thin in your Gemfile it will automagically use it

over 1 year ago ·
4143

Yes, It uses without mentioning it explicitly

over 1 year ago ·