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