serve vue spa from axum
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
@ -4,14 +4,22 @@ run *ARGS: build
|
||||
start: build
|
||||
./target/debug/nuchat 2>&1 > target/debug/logs/nuchat.log &
|
||||
|
||||
build:
|
||||
build: build-cargo build-ui
|
||||
|
||||
build-cargo:
|
||||
@mkdir -p target/debug/logs
|
||||
@mkdir -p dist
|
||||
cargo build
|
||||
|
||||
[working-directory: "ui"]
|
||||
build-ui:
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
test: integration unit
|
||||
|
||||
integration:
|
||||
if [ ! $(curl -sf "localhost:7000/healthcheck" ) ]; then just run; fi
|
||||
if [ ! $(curl -sf "localhost:7000/api/healthcheck" ) ]; then just run; fi
|
||||
cargo test --test '*'
|
||||
|
||||
unit:
|
||||
|
||||
Reference in New Issue
Block a user