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
Percy11mo ago
Project ID: N/A
Brody
Brody11mo ago
vite does not include a production ready web server, instead a solution is to use caddy
Solution
Brody
Brody11mo 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 | AZIZ11mo ago
no its a ready made project i will share the repo there https://github.com/nomanwaseem111/video-calling-app
Brody
Brody11mo 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 | AZIZ11mo ago
so now how i can run it
Brody
Brody11mo ago
copy the two files i mentioned into your repo
BAG | AZIZ
BAG | AZIZ11mo ago
great
Want results from more Discord servers?
Add your server