joscas
joscas

Reputation: 7684

Things to know when replacing WEBrick by Thin

I intend to replace WEBrick by Thin on a Rails 3.2 project because WEBrick handles malformed unescaped URIs badly (bad URI error). I know there are config hacks to make WEBrick handle unescaped URIs but just adding gem 'thin' to my Gemfile seems so easy that makes me wonder:

BTW: I'm deploying on Heroku. If there are specific issues with Thin on Heroku then I would also like to know.

Upvotes: 8

Views: 6176

Answers (2)

PhilT
PhilT

Reputation: 4394

If you have thin in your Gemfile rails s should start with thin. For example, the app I work on has thin in the development group in the Gemfile:

rails s
=> Booting Thin
=> Rails 3.2.14 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

Upvotes: 7

Gaurav Agarwal
Gaurav Agarwal

Reputation: 14853

Nope.. Rails is just that simple! :)

Just make sure you start using:

thin start

Upvotes: 6

Related Questions