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

后端 未结 9 939
爱一瞬间的悲伤
爱一瞬间的悲伤 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:23

    I has this error because i was running rails-dev-box with Rails inside of it.

    Port 3000 in the host computer is forwarded to port 3000 in the virtual machine. 
    Thus, applications running in the virtual machine can be accessed via 
    localhost:3000 in the host computer.
    

    So is logged out from Vagrant and shutted down it:

    vagrant@rails-dev-box:/vagrant/rails$ exit
    $ vagrant halt
    

    That helped me.

提交回复
热议问题