2 years ago
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 │ nodejs18, npm-9x ║
║─────────────────────────────────║
║ 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
8 Replies
2 years ago
it cant do it for vue, railway is not geared towards web site hosting, so we need to give it a nudge.
vute + vite?
2 years ago
does it use vite?
readme says See [Configuration Reference](https://vitejs.dev/guide/). so i guess vite it is!
2 years ago
copy the nixpacks.toml and caddyfile from this repo into yours
2 years ago
Awesome