From f7b69f770449c2a108b64661ab56099c9bafc4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 7 Jan 2023 21:59:34 +0100 Subject: [PATCH] Add more utilities to Makefile --- Dockerfile | 2 +- Makefile | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1dfaabd..ac4c717 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10.9-alpine -ENV VERSION_NUMBER 0.1.1-6-g25a58c2 +ENV VERSION_NUMBER 0.1.1-7-g1ccfdc3 ENV PROD 1 RUN apk add \ diff --git a/Makefile b/Makefile index f678dcd..ca3c71d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -.PHONY: createsuperuser shell cleanstatic - all: css migrate initialize: npm css migrate sethookdir loadplatforms @@ -24,8 +22,11 @@ migrate: makemigrations dev: migrate sethookdir poetry run python src/web/manage.py runserver_plus +caddy: + caddy run --watch + dev-prod: migrate collectstatic sethookdir - cd src/web/; poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker + cd src/web/; PROD=1 poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker dumptracker: poetry run python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml @@ -60,4 +61,4 @@ date: cleanstatic: rm -r src/web/static/* -clean: cleanstatic \ No newline at end of file +clean: cleanstatic