Update files
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-01-19 21:50:11 +01:00
parent 274520c57a
commit 7d6b53cd1d
13 changed files with 30 additions and 30 deletions

View File

@ -2,49 +2,49 @@ all: css migrate
initialize: npm css migrate sethookdir loadplatforms
HTMLFILES := $(shell find timetracker/games/templates -type f)
HTMLFILES := $(shell find games/templates -type f)
npm:
npm install
css: input.css
npx tailwindcss -i ./input.css -o ./timetracker/games/static/base.css
npx tailwindcss -i ./input.css -o ./games/static/base.css
css-dev: css
npx tailwindcss -i ./input.css -o ./timetracker/games/static/base.css --watch
npx tailwindcss -i ./input.css -o ./games/static/base.css --watch
makemigrations:
poetry run python timetracker/manage.py makemigrations
poetry run python manage.py makemigrations
migrate: makemigrations
poetry run python timetracker/manage.py migrate
poetry run python manage.py migrate
dev: migrate
poetry run python timetracker/manage.py runserver
poetry run python manage.py runserver
caddy:
caddy run --watch
dev-prod: migrate collectstatic
cd timetracker/; PROD=1 poetry run python -m gunicorn --bind 0.0.0.0:8001 root.asgi:application -k uvicorn.workers.UvicornWorker
PROD=1 poetry run python -m gunicorn --bind 0.0.0.0:8001 timetracker.asgi:application -k uvicorn.workers.UvicornWorker
dumpgames:
poetry run python timetracker/manage.py dumpdata --format yaml games --output tracker_fixture.yaml
poetry run python manage.py dumpdata --format yaml games --output tracker_fixture.yaml
loadplatforms:
poetry run python timetracker/manage.py loaddata platforms.yaml
poetry run python manage.py loaddata platforms.yaml
loadsample:
poetry run python timetracker/manage.py loaddata sample.yaml
poetry run python manage.py loaddata sample.yaml
createsuperuser:
poetry run python timetracker/manage.py createsuperuser
poetry run python manage.py createsuperuser
shell:
poetry run python timetracker/manage.py shell
poetry run python manage.py shell
collectstatic:
poetry run python timetracker/manage.py collectstatic --clear --no-input
poetry run python manage.py collectstatic --clear --no-input
poetry.lock: pyproject.toml
poetry install
@ -56,6 +56,6 @@ date:
poetry run python -c 'import datetime; from zoneinfo import ZoneInfo; print(datetime.datetime.isoformat(datetime.datetime.now(ZoneInfo("Europe/Prague")), timespec="minutes", sep=" "))'
cleanstatic:
rm -r timetracker/static/*
rm -r static/*
clean: cleanstatic