Skip to content

Commit

Permalink
Merge pull request openfoodfoundation#13072 from rioug/update-action-…
Browse files Browse the repository at this point in the history
…cable-config

Update ActionCable config
  • Loading branch information
filipefurtad0 authored Jan 24, 2025
2 parents 5d36073 + a3e939e commit adf1c63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
8 changes: 4 additions & 4 deletions config/cable.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit adf1c63

Please sign in to comment.