R
Join ServerRailway
✋|help
Application runs but not available on domain
Hi!
My project id is 980ee61c-1bdf-4d33-baa2-ec2520cda4ec
Running
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
and PORT is define in my project variables
Looking at the logs I see
My project id is 980ee61c-1bdf-4d33-baa2-ec2520cda4ec
Running
railway run bundle exec puma -C config/puma.rb
seems to work on my consoleBut 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)
Umm is your app listening on 0.0.0.0 or localhost
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)
Ah! Unfortunately I don't know much ruby at all 😔
🥲 thanks anyway
SOLVED
I added
I added
mkdir -p tmp/pids
to the build command and that solved the problem.