Rails Spring breaking generators

后端 未结 4 1592
不知归路
不知归路 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:57

    There is same problem on rails 5.1.4 for responders gem

    I listed solutions along with previous ones:

    • close terminal and open new one
    • run command with
      DISABLE_SPRING=1 bundle exec rails generate responders:install
      or export it as environment variable
      export DISABLE_SPRING=1
    • kill running spring process for your app
      ps ax | grep spring | grep YOUR_APP_NAME | cut -f1 -d' ' | xargs kill

提交回复
热议问题