Application runs but not available on domain

Ddwaynemac12/8/2022
Hi!

My project id is 980ee61c-1bdf-4d33-baa2-ec2520cda4ec

Running
railway run bundle exec puma -C config/puma.rb
seems to work on my console
But when trying to navigate through the browser I get error "Is your app correctly listening on $PORT?"

In my config/puma.rb I do have
port ENV.fetch("PORT") { 3000 }
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }

and PORT is define in my project variables

Looking at the logs I see

No such file or directory @ rb_sysopen - tmp/pids/server.pid (Errno::ENOENT)
..finnian12/8/2022
Umm is your app listening on 0.0.0.0 or localhost
Ddwaynemac12/8/2022
0.0.0.0
Ddwaynemac12/8/2022
but I'm now suspecting the problem is with the pidfile
Ddwaynemac12/8/2022
I get error
No such file or directory @ rb_sysopen - tmp/pids/server.pid (Errno::ENOENT)
..finnian12/8/2022
Ah! Unfortunately I don't know much ruby at all 😔
Ddwaynemac12/8/2022
🥲 thanks anyway
Ddwaynemac12/8/2022
SOLVED

I added
mkdir -p tmp/pids
to the build command and that solved the problem.