Gra*_*ick 2 ruby-on-rails heroku sidekiq
这是一个帮助别人的问题,我实际上已经解决了它,但无法轻易找到答案:
我在使用 Sidekiq Pro 时遇到问题,无法找到如何从 heroku 上的私有 gem 服务器 (contrybsys) 安装 Sidekiq Pro。
Heroku 拒绝了我的部署,说道:
remote : Authentication is required for gems.contribsys.com.
remote: Please supply credentials for this source. You can do this by running:
remote: bundle config gems.contribsys.com username:password
remote: Bundler Output: Authentication is required for gems.contribsys.com.
remote: Please supply credentials for this source. You can do this by running:
remote: bundle config gems.contribsys.com username:password
Run Code Online (Sandbox Code Playgroud)
我在本地安装了 gem。本地一切正常,但无法部署。
这是解决方案:
heroku config:set BUNDLE_GEMS__CONTRIBSYS__COM=username:password
Run Code Online (Sandbox Code Playgroud)
然后部署