From e2330a15c4b7cbb8343a6bd37a8806d8b64156fb Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 28 May 2024 10:34:01 +0400 Subject: [PATCH] Cleanup Makefile, add Caddy --- Makefile | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index c472ed8..f1ebfc4 100644 --- a/Makefile +++ b/Makefile @@ -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