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