Thin web server: `start_tcp_server': no acceptor (RuntimeError) after git branch checkout

后端 未结 9 932
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 16:00

A Rails 3.2.0 app, working fine with Thin web server, both locally and on Heroku cedar stack.

After:

$ git branch work
$ git checkout work
$ rails se         


        
9条回答
  •  天命终不由人
    2020-11-29 16:14

    This works for me. Find (zombie?) server (can happen when quitting terminal with server running):

    $ ps ax | grep rails
    

    If it returns something like:

    33467 s002 S+ 0:00.00 grep rails
    33240 s003 S+ 0:15.05 /Users/Arta/.rbenv/versions/1.9.2-p290/bin/ruby script/rails s -p 3000
    

    kill it, and run anew:

    $ kill -9 33240
    $ rails s
    

提交回复
热议问题