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

后端 未结 6 626
时光取名叫无心
时光取名叫无心 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 06:45

    TL;DR: Restarting computer worked for me.

    I had the same problem, and although the chosen answer worked, I wasn't comfortable deleting a bunch of stuff I admittedly don't fully understand. My git status on the bin dir looked like this, after deleting the bin dir and running rails app:update:bin

    deleted:    bin/bundle
    modified:   bin/rails
    modified:   bin/rake
    modified:   bin/setup
    deleted:    bin/spring
    deleted:    bin/webpack
    deleted:    bin/webpack-dev-server
    deleted:    bin/yarn
    

    I felt like something might come back to bite me later, so after reading the article referenced in the accepted answer (http://www.dixis.com/?p=754) I decided to just restart my computer, as that would fix any networking issues. It worked like a charm.

提交回复
热议问题