i deploying rails application production using thin. right after starting rails, thin shuts down, ouput 'exiting':
$ bundle exec rails s -e production => booting thin => rails 4.0.0 application starting in production on http://0.0.0.0:3000 => run `rails server -h` more startup options => ctrl-c shutdown server >> thin web server (v1.5.1 codename straight razor) >> maximum connections set 1024 >> listening on 0.0.0.0:3000, ctrl+c stop exiting the same configuration / setup works in development. same configuration works production using webrick:
$ bundle exec rails s -e production => booting webrick => rails 4.0.0 application starting in production on http://0.0.0.0:3000 => run `rails server -h` more startup options => ctrl-c shutdown server [2013-07-19 17:59:07] info webrick 1.3.1 [2013-07-19 17:59:07] info ruby 2.0.0 (2013-06-27) [x86_64-linux] [2013-07-19 17:59:07] info webrick::httpserver#start: pid=5231 port=3000 surely should possible receive output on why shutting down web server rated production use. however, have not found out how.
any ideas?
turns out starting thin in production mode made rails eager load module using eventmachine, keeping thin code being blocked after starting , shutting down instead.
Comments
Post a Comment