Merge pull request #13072 from rioug/update-action-cable-config

Update ActionCable config
This commit is contained in:
Filipe
2025-01-23 19:24:44 -06:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ SECRET_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
OFN_REDIS_URL="redis://localhost:6379/1"
OFN_REDIS_JOBS_URL="redis://localhost:6379/2"
OFN_REDIS_CABLE_URL="redis://localhost:6379/0"
SITE_URL="0.0.0.0:3000"

View File

@@ -1,19 +1,19 @@
development:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6379/1") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/1") %>
channel_prefix: your_application_development
production:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6380/0") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/0") %>
channel_prefix: your_application_production
staging:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6380/0") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/0") %>
channel_prefix: your_application_staging
test:
adapter: redis
url: <%= ENV.fetch("OFN_REDIS_URL", "redis://localhost:6379/1") %>
url: <%= ENV.fetch("OFN_REDIS_CABLE_URL", "redis://localhost:6379/1") %>
channel_prefix: your_application_test