Rails uninitialized constant Bundler (NameError)

前端 未结 3 766
半阙折子戏
半阙折子戏 2020-12-14 11:34

I\'m getting the following error when running any rails commands like rails s or rails c, it\'s also preventing my heroku app from starting (same e

3条回答
  •  再見小時候
    2020-12-14 12:05

    These commands from the bundler FAQ did the trick:

    #remove project-specific settings
    rm -rf .bundle/
    
    # remove project-specific cached gems and repos
    rm -rf vendor/cache/
    
    # remove the saved resolve of the Gemfile
    rm -rf Gemfile.lock
    

    and then rebundling with bundle install

    edit: heroku deploy was also failing to start up because it starts the server with bin/rails s and my binstubs were all wonky. to fix this: BUNDLE INSTALL --BINSTUBS, again from bundler docs

提交回复
热议问题