Can build central in production mode

This commit is contained in:
2024-08-07 16:44:30 +02:00
parent 48a2f728de
commit e18162b32d
8 changed files with 154 additions and 3 deletions

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
DOCKER_TEMP_DIR=temp
all: frontend backend
frontend:
cd central_frontend && npm run build && cd ..
rm -rf central_backend/static
mv central_frontend/dist central_backend/static
backend: frontend
cd central_backend && cargo clippy -- -D warnings && cargo build --release