19 days ago
I need to connect to a MySQL database
Attachments
7 Replies
Status changed to Open Railway • 19 days ago
19 days ago
What do the deploy logs show? Looks like the app failed to deploy correctly. Are you able to show the logs?
logicminds
What do the deploy logs show? Looks like the app failed to deploy correctly. Are you able to show the logs?
19 days ago
19 days ago
Make sure the port your application is listening to is the same port your URL is mapped to.
0x5b62656e5d
Make sure the port your application is listening to is the same port your URL is mapped to.
19 days ago
How can I check that?
19 days ago
Check to see if the port of the pregenerated URL in your networking settings of the service is 8080.
If it is, I'd try setting it to an arbitrary number (eg, 3000), and change your application to listen to 3000 as well using the PORT variable.
19 days ago
Reference the variables here https://docs.railway.com/variables/reference and make sure that the port the app is running on (lets say 3000) is configured either in the railway deployment config (variables) or .env file or config file. Try comparing RAILWAY_TCP_APPLICATION_PORT with what you have configured and what your app actually uses.
19 days ago
go settings then scroll down to public networking. you will see which port its running (3000) click to edit then select port 8080