3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Sidekiq pro を Rails にインストールする

Posted at

sidekiq proをRailsで使おうとしたときに、
公式wikiのほうでは、インストール方法がどうにも見つけられず、
手こずったので、まとめてました。

sidekiqの使い方ブログ記事も色々ありますが、proのほうはなかなか無かったり……

公式wiki
https://github.com/mperham/sidekiq/wiki

手順

sidekiq-proをGemfileに追加します。

gem 'sidekiq-pro', source: "https://gems.contribsys.com/"

bundle install時に https://gems.contribsys.com/ というサイトを確認しにいくのですが、その際に認証情報が必要です。

接続に必要なIDとパスワードは、環境変数に入れておくのが一般的なようです。
(ちなみにIDとパスワードは、proライセンスの購入時に入手できるっぽいです。)

export BUNDLE_GEMS__CONTRIBSYS__COM= id : pass

環境変数に設定ができたら、インストールします。

bundle install

インストールが出来たら sidekiq を起動します。

bundle exec sidekiq

sidekiq起動時に、アスキーアートみたいなのがsidekiq proになっていればインストール出来ています。

スクリーンショット 2021-01-07 16.32.43.png

参考:
https://tech.medpeer.co.jp/entry/2020/04/01/090000
https://devcenter.heroku.com/ja/articles/bundler-configuration

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?