Vue js Vite app Crashed
dev-moa
TRIALOP

2 years ago

i am deploy vue js app but using vite , i added caddyfile and nixpack but still is crashed

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1

24 Replies

dev-moa
TRIALOP

2 years ago

91e340fd-2044-4845-a4c2-d51141b9e969


2 years ago

build logs please -


dev-moa
TRIALOP

2 years ago


2 years ago

  1. Please remove your start command from the service settings

  2. Error: [vite:css] [postcss] Cannot find module 'daisyui' - do you have daisyui installed?


dev-moa
TRIALOP

2 years ago

2- yes


dev-moa
TRIALOP

2 years ago

1- i removed the start command


2 years ago

please send your package.json


dev-moa
TRIALOP

2 years ago



dev-moa
TRIALOP

2 years ago


dev-moa
TRIALOP

2 years ago

i just installed daisyUi after you told me , but there is still error


2 years ago

your Caddyfile is named Caddyfile.txt


dev-moa
TRIALOP

2 years ago

Done , thanks G


2 years ago

all works?


dev-moa
TRIALOP

2 years ago

it says active but when i visit the url it says : Nothing here… yet, so i think it needs sometime or ?


2 years ago

yep just gotta wait a bit, railways proxy takes a bit to update it's routing table


dev-moa
TRIALOP

2 years ago

hi brody i want go back to this discussion do i need to build my vue vite app or only add caddyfile and nixpack no building or is building optional like running npm run build


2 years ago

building is not optional, you do need a build script along with the nixpacks.toml and Caddyfile


dev-moa
TRIALOP

2 years ago

so this is my steps : 1- run npm run build 2 …. idk next step if you can help any other step after building , while also having caddyfile and nixpack is there anything i am missing


2 years ago

you are over thinking this


2 years ago

do you have a build script?


dev-moa
TRIALOP

2 years ago

yes you mean after running npm run build i have dist file of built scripts


dev-moa
TRIALOP

2 years ago

yes i do


2 years ago

then deploy your repo to railway


Loading...