I’ve read through all the forums related to this problem but I can’t find a solution. I have a web application, a worker and a redis instance set up in fly. The webapp is not connecting the the redis instance correctly. Here’s the web app toml. I’m using BullMQ to create the queue and the job is created fine. That seems to work. The error Error: connect ECONNREFUSED 127.0.0.1:6379 is continually logged and the queue cannot listen to onComplete changes.
app = "vel-new"
kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]
[env]
PORT = "8080"
[experimental]
allowed_public_ports = [ ]
auto_rollback = true
private_network = true
[[services]]
internal_port = 8_080
processes = [ "app" ]
protocol = "tcp"
script_checks = [ ]
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = [ "http" ]
port = 80
force_https = true
[[services.ports]]
handlers = [ "tls", "http" ]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"