#Application runs but not available on domain

9 messages · Page 1 of 1 (latest)

waxen robin
#

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)

rugged veldtBOT
#

Project ID: 980ee61c-1bdf-4d33-baa2-ec2520cda4ec

#

It appears that the routing to the server is not working, though the server is running and the deployment logs show that the app is up.

slender vault
#

Umm is your app listening on 0.0.0.0 or localhost

waxen robin
#

0.0.0.0

#

but I'm now suspecting the problem is with the pidfile

#

I get error
No such file or directory @ rb_sysopen - tmp/pids/server.pid (Errno::ENOENT)

slender vault
#

Ah! Unfortunately I don't know much ruby at all 😔

waxen robin
#

🥲 thanks anyway