新手问题 Rails 命令无响应,如何确定问题所在

eailfly · May 23, 2016 · Last by kikyous replied at May 23, 2016 · 2900 hits

我在 Arch 上用 RVM 安装的 ruby-head,版本号是:

ruby 2.4.0dev (2016-05-20 trunk 55078) [x86_64-linux]

rails 版本是:

Rails 5.0.0.rc1

经常 rails 命令会没有反应,

具体状况是在命令行中输入

rails generate controller User index

就会一直卡住,没有任何反应,

rails console

也是一样,但是 rails server 却可以正常运行。

我怎么能知道 rails 命令运行到那一行卡住了呢?

spring stop

@kikyous 有效!!!spring stop 后再运行 rails g 或者 rails c 都可以了,这是什么原理?

#1 楼 @eailfly bundle update 之后 spring 版本变化了,和正在运行的 spring 实例不兼容

You need to Sign in before reply, if you don't have an account, please Sign up first.