Cleanup Makefile, add Caddy
This commit is contained in:
parent
9b5b09011e
commit
e2330a15c4
1 changed files with 8 additions and 12 deletions
20
Makefile
20
Makefile
|
@ -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'
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue