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
Project ID:
35ac5876-c43a-49c8-a7db-d920ce60eb07
35ac5876-c43a-49c8-a7db-d920ce60eb07
are you using the port that railway gives you?
the
PORT
env variableyes
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
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
You can take some idea from here : https://docs.railway.app/deploy/exposing-your-app