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....
Written by Rajeev N Bharshetty
Related protips
2 Responses
you can just use rails server, if you have thin in your Gemfile it will automagically use it
over 1 year ago
·
Yes, It uses without mentioning it explicitly
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#