Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • Is there something that could break or go wrong in my apllication if I do that?

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

like image 999
joscas Avatar asked Feb 08 '13 17:02

joscas


2 Answers

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
like image 138
PhilT Avatar answered Oct 01 '22 05:10

PhilT


Nope.. Rails is just that simple! :)

Just make sure you start using:

thin start
like image 34
Gaurav Agarwal Avatar answered Oct 01 '22 03:10

Gaurav Agarwal