Getting 502 bad gateway when deploying Vite. No logs updating
jackson-TRIAL
4 months ago
I just succesfully deployed my application but when I generated the public railway URl and tried to access it Im getting a 502 bad gateway. When looking at the logs, I only see that the app is successfully running
2 Replies
jackson-TRIAL
4 months ago
I fixed this. I needed to use the --expose command when running the server
4 months ago
Hello,
Not fixed, you are running a development server, that is going to be costly, buggy, and have terrible performance.
https://github.com/brody192/vite-react-template
Please copy the nixpacks.toml and Caddyfile from this repo into yours, and then you'll be running a development server.
Status changed to Awaiting User Response railway[bot] • 5 months ago