can't find gem bundler (>= 0.a) with executable bundle

在使用cap部署的时候,报can't find gem bundler (>= 0.a) with executable bundle

找了一篇文章,

http://www.dark-hamster.com/application/how-to-solve-error-cant-find-gem-bundler-0-a-with-executable-bundle-gemgemnotfoundexception/

我服务器是装的rvm ruby 2.5.1,但我本地由于历史原因,之前装过rvm ruby 2.3.3,所以我服务器的bundler是2.0.1,本地的Gemfile.lock里面是1.17.2

BUNDLED WITH
   1.17.2
 

把这个修改为2.0.1

BUNDLED WITH
   2.0.1
 

再提交下git,就可以运行了

猜你喜欢

转载自blog.csdn.net/tang05709/article/details/88071779