Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Heroku舞台环境。无法通过捆绑程序安装gems_Ruby On Rails_Ruby_Heroku_Bundler - Fatal编程技术网

Ruby on rails Heroku舞台环境。无法通过捆绑程序安装gems

Ruby on rails Heroku舞台环境。无法通过捆绑程序安装gems,ruby-on-rails,ruby,heroku,bundler,Ruby On Rails,Ruby,Heroku,Bundler,除了生产环境之外,我还想在Heroku上创建登台环境。我已准备好如下声明env heroku create odai-staging --remote staging heroku config:add RACK_ENV=staging RAILS_ENV=staging --remote staging 在Gemfile上,准备了一组staging group :production, :staging do gem 'pg' gem 'rails_12factor' end 然后

除了生产环境之外,我还想在Heroku上创建登台环境。我已准备好如下声明env

heroku create odai-staging --remote staging
heroku config:add RACK_ENV=staging RAILS_ENV=staging --remote staging
在Gemfile上,准备了一组staging

group :production, :staging do
  gem 'pg'
  gem 'rails_12factor'
end
然后,按照以下步骤操作

bundle install 

git push staging master
然而,我有以下错误。我该怎么办?我期待着收到你的来信

remote:        Running: bundle install --without development:test --path     vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
remote:        Fetching gem metadata from https://rubygems.org/...........
remote:        Fetching version metadata from https://rubygems.org/...
remote:        Fetching dependency metadata from https://rubygems.org/..
remote:        Could not find net-ssh-2.10.0 in any of the sources
remote:        Bundler Output: Fetching gem metadata from    https://rubygems.org/...........
remote:        Fetching version metadata from https://rubygems.org/...
remote:        Fetching dependency metadata from https://rubygems.org/..
remote:        Could not find net-ssh-2.10.0 in any of the sources
remote:  !
remote:  !     Failed to install gems via Bundler.

我已经解决了这个问题,如下所示!谢谢你的帮助

gem 'net-ssh', '!= 2.10.0'
bundle update

看看这个帖子,我想它会有帮助的:谢谢!我现在检查一下,问题还没有解决。我会继续寻找另一个解决方案。