Cleanup Makefile, add Caddy

This commit is contained in:
DarkCat09 2024-05-28 10:34:01 +04:00
parent 9b5b09011e
commit e2330a15c4
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -1,4 +1,4 @@
.PHONY: run test build frontend backend
.PHONY: run run-backend run-frontend test
run:
# See backend/config.py for more fields
@ -6,15 +6,11 @@ run:
COOKIES_DIR=cookies \
python3 ./backend/main.py
run-backend: run
run-frontend:
@echo 'Only for development environment!'
caddy run
test:
@python3 -m unittest discover -vcs ./backend
build:
make frontend
make backend
frontend:
@cd frontend && echo 'Not implemented'
backend:
@cd backend && echo 'Not implemented'
python3 -m unittest discover -vcs ./backend