Hosting my first vue website
I've used railway for services (mostly java/kotlin) on railway. now i want to deploy a vue template that i downloaded. i put the project on my github and then connected that to railway. but failed to deploy due to:
Nixpacks build failed
╔════════ Nixpacks v1.24.0 ═══════╗
║ setup │ nodejs_18, npm-9_x ║
║─────────────────────────────────║
║ install │ npm ci ║
║─────────────────────────────────║
║ build │ npm run build ║
║─────────────────────────────────║
║ start │ ║
╚═════════════════════════════════╝
Error: No start command could be found
I thought railway was supposed to be able to auto-configure nixpacks/config due to project setup. I'm assuming it can do this for vue, but since this is my first time where im not hosting a rest api, i figured id reach out to see if im doing something dumb
Solution:Jump to solution
https://github.com/brody192/vue-3-template
copy the nixpacks.toml and caddyfile from this repo into yours...
9 Replies
Project ID:
N/A
N/A
it cant do it for vue, railway is not geared towards web site hosting, so we need to give it a nudge.
vute + vite?
gotcha. uhm. its just a vue template i got from tailwind
does it use vite?
readme says
See [Configuration Reference](https://vitejs.dev/guide/).
so i guess vite it is!Solution
https://github.com/brody192/vue-3-template
copy the nixpacks.toml and caddyfile from this repo into yours
excellent. that worked. woot
Awesome