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

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

    In Rails 5 the binstups are created using the rails command.

    I just deleted the bin folder myself and then ran rails app:update:bin which fixed my problems.

    In Rails 5, your app's bin/ directory contains executables that are versioned like any other source code, rather than stubs that are generated on demand.

    Here's how to upgrade:

    bundle config --delete bin    # Turn off Bundler's stub generator
    rails app:update:bin          # Use the new Rails 5 executables
    git add bin                   # Add bin/ to source control
    

提交回复
热议问题