fltw9q
Last Updated: February 25, 2016
·
5.72K
· rshetty
54588 555132027835563 687647376 o

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....

Say Thanks
Respond

2 Responses
Add your response

4136
53389e3b54b1ee0477e17ed0c15a4db5

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

over 1 year ago ·
4143
54588 555132027835563 687647376 o

Yes, It uses without mentioning it explicitly

over 1 year ago ·