Ruby Bundler说捆绑还行,但赢了';不要运行代码

Ruby Bundler说捆绑还行,但赢了';不要运行代码,ruby,bundler,Ruby,Bundler,当我运行bundle check时,它会显示: ubuntu@ip:/opt/bluecopper/current$ /opt/default-ruby/bundle check fatal: Not a git repository (or any of the parent directories): .git The Gemfile's dependencies are satisfied 当我列出宝石时,我得到: ubuntu@ip:/opt/bluecopper/current$ /

当我运行bundle check时,它会显示:

ubuntu@ip:/opt/bluecopper/current$ /opt/default-ruby/bundle check
fatal: Not a git repository (or any of the parent directories): .git
The Gemfile's dependencies are satisfied
当我列出宝石时,我得到:

ubuntu@ip:/opt/bluecopper/current$ /opt/default-ruby/bundle list
fatal: Not a git repository (or any of the parent directories): .git
Gems included by the bundle:
  * aws-sdk-v1 (1.64.0)
  * bluecopper (0.1.0)
  * bundler (1.10.5)
  * dotenv (2.0.2)
  * json (1.8.3)
  * mini_portile (0.6.2)
  * multi_json (1.11.1)
  * nokogiri (1.6.6.2)
  * rollbar (1.5.3)
  * thor (0.19.1)
但当我真正尝试执行某件事时,它会说:

ubuntu@ip:/opt/bluecopper/current$ /opt/default-ruby/ruby -S bundle exec bluecopper start -c app-config.yml 
fatal: Not a git repository (or any of the parent directories): .git
Could not find json-1.8.3 in any of the sources
Run `bundle install` to install missing gems.

你知道我如何解决这个问题吗?这毫无意义。

在前两个命令中,您使用的是
/opt/default ruby/bundle
,但在最后一个命令中使用的是
/opt/default ruby/ruby-S bundle


我会尝试使用
/opt/default ruby/bundle exec bluecuper start-c app config.yml
。它可能与
ruby-S
更改$PATH有关。

在前两个命令中,您使用的是
/opt/default ruby/bundle
,但在最后一个命令中使用的是
/opt/default ruby/ruby-S bundle


我会尝试使用
/opt/default ruby/bundle exec bluecuper start-c app config.yml
。它可能与
ruby-S
更改$PATH有关。

在前两个命令中,您使用的是
/opt/default ruby/bundle
,但在最后一个命令中使用的是
/opt/default ruby/ruby-S bundle


我会尝试使用
/opt/default ruby/bundle exec bluecuper start-c app config.yml
。它可能与
ruby-S
更改$PATH有关。

在前两个命令中,您使用的是
/opt/default ruby/bundle
,但在最后一个命令中使用的是
/opt/default ruby/ruby-S bundle


我会尝试使用
/opt/default ruby/bundle exec bluecuper start-c app config.yml
。这可能与
ruby-S
更改$PATH有关。

bluecopper可执行文件具有以下功能:

#!/usr/bin/env ruby

当使用
bundle exec
调用时,该命令使用系统ruby,而不是预期的
/opt/default ruby/ruby
,修复方法是将路径更改为prepend
/opt/default ruby
,以便
/usr/bin/env ruby
能够选择正确的路径。

bluecopper可执行文件具有以下功能:

#!/usr/bin/env ruby

当使用
bundle exec
调用时,该命令使用系统ruby,而不是预期的
/opt/default ruby/ruby
,修复方法是将路径更改为prepend
/opt/default ruby
,以便
/usr/bin/env ruby
能够选择正确的路径。

bluecopper可执行文件具有以下功能:

#!/usr/bin/env ruby

当使用
bundle exec
调用时,该命令使用系统ruby,而不是预期的
/opt/default ruby/ruby
,修复方法是将路径更改为prepend
/opt/default ruby
,以便
/usr/bin/env ruby
能够选择正确的路径。

bluecopper可执行文件具有以下功能:

#!/usr/bin/env ruby
当使用
bundle exec
调用该命令时,命令使用系统ruby而不是预期的
/opt/default ruby/ruby
,修复方法是将路径更改为prepend
/opt/default ruby
,以便
/usr/bin/env ruby
选择正确的路径