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:
https://github.com/brody192/vue-3-template copy the nixpacks.toml and caddyfile from this repo into yours...
Jump to solution
9 Replies
Percy
Percy4mo ago
Project ID: N/A
coltonidle
coltonidleOP4mo ago
N/A
Brody
Brody4mo 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
coltonidleOP4mo ago
gotcha. uhm. its just a vue template i got from tailwind
Brody
Brody4mo ago
does it use vite?
coltonidle
coltonidleOP4mo ago
readme says See [Configuration Reference](https://vitejs.dev/guide/). so i guess vite it is!
Solution
Brody
Brody4mo ago
https://github.com/brody192/vue-3-template copy the nixpacks.toml and caddyfile from this repo into yours
coltonidle
coltonidleOP4mo ago
excellent. that worked. woot
Brody
Brody4mo ago
Awesome
Want results from more Discord servers?
Add your server