R
Railway7mo ago
Ed

Deploy is OK but cant access the domain

Hi! I just deployed a NodeJS aplication and everything worked well. I checked the logs section and my app is active, as expected. But, i cant access the routs (ex: "/" ou "/api"). When i hit the endpoint, i get the "Application failed to respond", with the title: "Server error". I generated a custom domain and didnt worked too. Someone can help me?
No description
16 Replies
Percy
Percy7mo ago
Project ID: N/A
Ed
Ed7mo ago
No description
Ed
Ed7mo ago
No description
Ed
Ed7mo ago
Project ID: 8587792 Service id: 183c9eb8-3ea7-4728-b9c6-b7899c4befbe
Fragly
Fragly7mo ago
Make sure you're listening on the port railway provides
Ed
Ed7mo ago
Hmm i'll check this now
Ed
Ed7mo ago
@Fragly , can you tell me where i can find this PORT variable provided by Railway?
No description
Ed
Ed7mo ago
No description
Brody
Brody7mo ago
please read further down the page, there are code examples
Ed
Ed7mo ago
I did But im not sure i understand
Ed
Ed7mo ago
No description
Ed
Ed7mo ago
But, what is the value?
Ed
Ed7mo ago
No description
Ed
Ed7mo ago
i get it now. Its done. Its working. I was looking for some value but the variable was enough
Brody
Brody7mo ago
awesome