Rails Spring breaking generators

后端 未结 4 1584
不知归路
不知归路 2020-12-09 15:25

I\'m setting up my first Rails 4.1 app, which comes with Spring, their new preloader. When I try to install Devise using their generator ($ rails generate devise:insta

4条回答
  •  隐瞒了意图╮
    2020-12-09 15:38

    You can disable spring for any $ rails command by passing the environment variable DISABLE_SPRING=1.

    $ DISABLE_SPRING=1 rails generate devise:install
    

    Alternatively, you can try $ spring stop to spin down the spring processes. Running $ rails generate afterwards will spin up a new spring process, which might solve the temporary issue.

提交回复
热议问题