Problems with node js api

the project on localhost works perfectly, however when I deployed it to the platform a page appears with the following message "Application failed to respond". Is there any log to check why the application is not working?
7 Replies
Percy
Percy16mo ago
Project ID: 35ac5876-c43a-49c8-a7db-d920ce60eb07
lucas alves
lucas alvesOP16mo ago
35ac5876-c43a-49c8-a7db-d920ce60eb07
Fragly
Fragly16mo ago
are you using the port that railway gives you? the PORT env variable
lucas alves
lucas alvesOP16mo ago
yes
Fragly
Fragly16mo ago
okay I'm out of ideas a conductor or at least someone who knows more than I do should be able to help you soon
lucas alves
lucas alvesOP16mo ago
the first time I uploaded the code it worked fine, but I got an unsupported mysql error. So I installed mysql2 from there it stopped working, even going back to normal mysql. I believe the error may be in the port. Where do I find the API port? I was confusing the port of mysql with that of the api It worked, it was really the door, thanks
tsensei
tsensei16mo ago
You can take some idea from here : https://docs.railway.app/deploy/exposing-your-app
Railway Docs
Exposing Your App | Railway Docs
Documentation for Railway
Want results from more Discord servers?
Add your server