Heroku 暂存环境。无法通过 Bundler 安装 gems

Heroku staging enviroment. Failed to install gems via 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

然后,进行如下操作。

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