2 years ago
My app successfully passes the implementation without errors, but when I open the public link it shows me a message "Application failed to respond". I'll give you the link so you can help me because I could be roasting.
https://marvelcontestofchampions-production.up.railway.app/
5 Replies
2 years ago
Are you listening on the port Railway provides?
For more information, take a look at https://docs.railway.app/guides/fixing-common-errors
Status changed to Solved Railway • almost 2 years ago
2 years ago
It is an app developed with react using Vite, I am new to this and I do not know the port configuration, locally I use http://localhost:5172 because it is the url that the compiler tells me
2 years ago
Okay easiest fix will be to just create a service variable named PORT and set it to 5172
EDIT: Something to note, you're running a development server, I'd recommend copying the nixpacks.toml and Caddyfile from the following repo into yours https://github.com/brody192/vite-react-template, this will serve your app via Caddy which is more appropriate for production
2 years ago
funciona… gracias