- Create a
redis.cnf
file with different port, it looks like this:
port 6380
daemonize no
appendonly no
save ""
- Adjust file
Procfile.dev
Add this line redis: redis-server config/redis.conf
The content of the Procfile.dev
should be something like this
web: bin/rails server
css: bin/rails tailwindcss:watch
redis: redis-server config/redis.conf
worker: bundle exec sidekiq
Another the code the web: bin/rails server
should be on the top of the file, if not, it can cause some wierd prolem with start up port
- Adjust
config/cable.yml
a little bit
development:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
- Then run
export REDIS_URL=6380
- Run the app again