Hosting my first vue website
coltonidle
FREEOP

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

coltonidle
FREEOP

2 years ago

N/A


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?


coltonidle
FREEOP

2 years ago

gotcha. uhm. its just a vue template i got from tailwind


2 years ago

does it use vite?


coltonidle
FREEOP

2 years ago

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


coltonidle
FREEOP

2 years ago

excellent. that worked. woot


2 years ago

Awesome


Loading...