Application runs but not available on domain

Hi! My project id is 980ee61c-1bdf-4d33-baa2-ec2520cda4ec Running
railway run bundle exec puma -C config/puma.rb
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" }
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)
No such file or directory @ rb_sysopen - tmp/pids/server.pid (Errno::ENOENT)
6 Replies
Percy
Percy2y ago
Project ID: 980ee61c-1bdf-4d33-baa2-ec2520cda4ec
Percy
Percy2y ago
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.
⚠️ experimental feature
Finn
Finn2y ago
Umm is your app listening on 0.0.0.0 or localhost
dwaynemac
dwaynemacOP2y ago
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)
No such file or directory @ rb_sysopen - tmp/pids/server.pid (Errno::ENOENT)
Finn
Finn2y ago
Ah! Unfortunately I don't know much ruby at all 😔
dwaynemac
dwaynemacOP2y ago
🥲 thanks anyway SOLVED I added
mkdir -p tmp/pids
mkdir -p tmp/pids
to the build command and that solved the problem.
Want results from more Discord servers?
Add your server