Ruby on Rails console is hanging when loading

后端 未结 5 2014
梦如初夏
梦如初夏 2020-12-04 10:01

For whatever reason, the Ruby on Rails console refuses to start; it just hangs. I haven\'t made any changes to my code, and other projects using the same version of Ruby and

5条回答
  •  情深已故
    2020-12-04 10:20

    If $ bin/spring stop doesn't solve the issue, then check to make sure there isn't an orphaned Spring process still hanging around:

    $ ps aux | grep -i spring
    

    If you see something like

    user  7163  0.0  0.0 110356  2165 pts/3    S+   19:40   0:00 grep --color=auto -i spring
    user 16980  0.0  0.4 398826 17580 ?        Sl   Aug31   0:00 spring server | current | started 277 hours ago     
    

    then kill the errant spring process and try to start the console again:

    $ kill -9 16980 
    $ rails c
    

提交回复
热议问题