R
Railway8mo ago
Devmoha

Vue js Vite app Crashed

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
22 Replies
Percy
Percy8mo ago
Project ID: 91e340fd-2044-4845-a4c2-d51141b9e969
Devmoha
DevmohaOP8mo ago
91e340fd-2044-4845-a4c2-d51141b9e969
Brody
Brody8mo 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?
Devmoha
DevmohaOP8mo ago
2- yes 1- i removed the start command
Brody
Brody8mo ago
please send your package.json
Devmoha
DevmohaOP8mo ago
i just installed daisyUi after you told me , but there is still error
Brody
Brody8mo ago
your Caddyfile is named Caddyfile.txt
Devmoha
DevmohaOP8mo ago
Done , thanks G
Brody
Brody8mo ago
all works?
Devmoha
DevmohaOP8mo ago
it says active but when i visit the url it says : Nothing here... yet, so i think it needs sometime or ?
Brody
Brody8mo ago
yep just gotta wait a bit, railways proxy takes a bit to update it's routing table
Devmoha
DevmohaOP5mo 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
Brody
Brody5mo ago
building is not optional, you do need a build script along with the nixpacks.toml and Caddyfile
Devmoha
DevmohaOP5mo 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
Brody
Brody5mo ago
you are over thinking this do you have a build script?
Devmoha
DevmohaOP5mo ago
yes you mean after running npm run build i have dist file of built scripts yes i do
Brody
Brody5mo ago
then deploy your repo to railway
Want results from more Discord servers?
Add your server