'rails generate' commands hang when trying to create a model

后端 未结 6 619
时光取名叫无心
时光取名叫无心 2021-01-30 06:14

I\'m new to rails and decided this morning to dump my whole database design/model and start over. And being a noob, I\'m sure did it incorrectly.

I removed all the files

6条回答
  •  失恋的感觉
    2021-01-30 07:12

    I just had to kill spring.

    Before

    $ rails generate yaddi-yaddi-yadda
    hang...
    hang...
    hang..
    ^C
    

    My fix:

    $ ps -u {user} | grep rails
    123 123456 spring app ...
    

    Find the pid, then kill spring.

    $ rails generate yaddi-yaddi-yadda
    # success.
    

提交回复
热议问题