R
Railway11mo 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
Percy11mo ago
Project ID: N/A
Ed
Ed11mo ago
No description
Ed
Ed11mo ago
No description
Ed
Ed11mo ago
Project ID: 8587792 Service id: 183c9eb8-3ea7-4728-b9c6-b7899c4befbe
Fragly
Fragly11mo ago
Make sure you're listening on the port railway provides
Ed
Ed11mo ago
Hmm i'll check this now
Ed
Ed11mo ago
@Fragly , can you tell me where i can find this PORT variable provided by Railway?
No description
Ed
Ed11mo ago
No description
Brody
Brody11mo ago
please read further down the page, there are code examples
Ed
Ed11mo ago
I did But im not sure i understand
Ed
Ed11mo ago
No description
Ed
Ed11mo ago
But, what is the value?
Ed
Ed11mo ago
No description
Ed
Ed11mo ago
i get it now. Its done. Its working. I was looking for some value but the variable was enough
Brody
Brody11mo ago
awesome
Want results from more Discord servers?
Add your server