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
Project ID:
91e340fd-2044-4845-a4c2-d51141b9e969
91e340fd-2044-4845-a4c2-d51141b9e969
build logs please - https://bookmarklets.up.railway.app/log-downloader/
1. Please remove your start command from the service settings
2.
Error: [vite:css] [postcss] Cannot find module 'daisyui'
- do you have daisyui installed?2- yes
1- i removed the start command
please send your package.json
i just installed daisyUi after you told me , but there is still error
your Caddyfile is named Caddyfile.txt
Done , thanks G
all works?
it says active but when i visit the url it says : Nothing here... yet, so i think it needs sometime or ?
yep just gotta wait a bit, railways proxy takes a bit to update it's routing table
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
building is not optional, you do need a build script along with the nixpacks.toml and Caddyfile
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
you are over thinking this
do you have a build script?
yes you mean after running npm run build i have dist file of built scripts
yes i do
then deploy your repo to railway