This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
herokuのREDIS_URLは認証付きで複雑なのでスキーマ込みで環境変数に渡す
またredis-rbで無指定の場合の接続先も同環境変数を参照している
- Loading branch information
Showing
4 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ DATABASE_PASSWORD= | |
SLACK_API_KEY= | ||
SLACK_API_SECRET= | ||
SLACK_OAUTH_ACCESS_TOKEN= | ||
REDIS_URL='redis://localhost:6379' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Sidekiq.configure_server do |config| | ||
config.redis = { url: "redis://#{Settings.redis.host}:6379", namespace: 'sidekiq' } | ||
config.redis = { url: ENV['REDIS_URL'], namespace: 'sidekiq' } | ||
end | ||
|
||
Sidekiq.configure_client do |config| | ||
config.redis = { url: "redis://#{Settings.redis.host}:6379", namespace: 'sidekiq' } | ||
config.redis = { url: ENV['REDIS_URL'], namespace: 'sidekiq' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
redis: | ||
host: 'localhost' | ||