在Heroku上部署Sidekiq Pro

时间:2017-09-26 18:33:40

标签: 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

我在本地安装宝石。一切都在本地运行良好,但无法部署。

1 个答案:

答案 0 :(得分:2)

以下是解决方案:

heroku config:set BUNDLE_GEMS__CONTRIBSYS__COM=username:password

然后部署