How can I fix an accidental 'sudo bundle install dir_name'?

后端 未结 4 659
我在风中等你
我在风中等你 2020-12-16 00:41

I accidentally ran sudo bundle install smtp_mail and now all my gems are in this directory called smtp_mail inside my Rails app.

I\'m not s

4条回答
  •  不知归路
    2020-12-16 01:17

    The path is specified in a file located in

    .bundle/config  
    

    If you delete the .bundle directory and then delete your smtp_mail directory you will be back at square one. If you really want a local (to your app) installation of the gems, I recommend you run

    bundle install --path vendor/bundle
    

    Good luck!

提交回复
热议问题