13 hours ago
I need to connect to a MySQL database
Attachments
7 Replies
Status changed to Open Railway • about 13 hours ago
12 hours 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?
12 hours ago
12 hours 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.
12 hours ago
How can I check that?
12 hours 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.
12 hours 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.
2 hours ago
go settings then scroll down to public networking. you will see which port its running (3000) click to edit then select port 8080