Vite port

how to make VITE take port auto from Railway ?
Solution:
running caddy on railway is plenty easy https://github.com/brody192/vite-react-template copy the nixpacks.toml and Caddyfile from this repo into yours...
Jump to solution
8 Replies
Percy
Percy5mo ago
Project ID: N/A
Brody
Brody5mo ago
vite does not include a production ready web server, instead a solution is to use caddy
Solution
Brody
Brody5mo ago
running caddy on railway is plenty easy https://github.com/brody192/vite-react-template copy the nixpacks.toml and Caddyfile from this repo into yours
BAG | AZIZ
BAG | AZIZ5mo ago
no its a ready made project i will share the repo there https://github.com/nomanwaseem111/video-calling-app
Brody
Brody5mo ago
thats fine, that doesnt change anything vite doesn’t include a production web server, caddy or similar is needed, i am offering you a ready-made solution with caddy
BAG | AZIZ
BAG | AZIZ5mo ago
so now how i can run it
Brody
Brody5mo ago
copy the two files i mentioned into your repo
BAG | AZIZ
BAG | AZIZ5mo ago
great