remove separate ui service, serve ui with backend
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:
30
Justfile
30
Justfile
@ -1,8 +1,30 @@
|
||||
run *ARGS: build
|
||||
docker compose up {{ARGS}}
|
||||
./target/debug/nuchat {{ARGS}}
|
||||
|
||||
stop:
|
||||
docker compose down
|
||||
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/api/healthcheck" ) ]; then just run; fi
|
||||
cargo test --test '*'
|
||||
|
||||
unit:
|
||||
cargo test --lib --bins
|
||||
|
||||
docker *ARGS:
|
||||
docker compose build
|
||||
docker compose up {{ARGS}}
|
||||
|
||||
Reference in New Issue
Block a user