Rename project (#41)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The old naming scheme was causing confusion and probably errors. Reviewed-on: #41
This commit is contained in:
30
Makefile
30
Makefile
@ -2,49 +2,49 @@ all: css migrate
|
||||
|
||||
initialize: npm css migrate sethookdir loadplatforms
|
||||
|
||||
HTMLFILES := $(shell find src/web/tracker/templates -type f)
|
||||
HTMLFILES := $(shell find src/timetracker/games/templates -type f)
|
||||
|
||||
npm:
|
||||
npm install
|
||||
|
||||
css: src/input.css
|
||||
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css
|
||||
npx tailwindcss -i ./src/input.css -o ./src/timetracker/games/static/base.css
|
||||
|
||||
css-dev: css
|
||||
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --watch
|
||||
npx tailwindcss -i ./src/input.css -o ./src/timetracker/games/static/base.css --watch
|
||||
|
||||
makemigrations:
|
||||
poetry run python src/web/manage.py makemigrations
|
||||
poetry run python src/timetracker/manage.py makemigrations
|
||||
|
||||
migrate: makemigrations
|
||||
poetry run python src/web/manage.py migrate
|
||||
poetry run python src/timetracker/manage.py migrate
|
||||
|
||||
dev: migrate
|
||||
poetry run python src/web/manage.py runserver
|
||||
poetry run python src/timetracker/manage.py runserver
|
||||
|
||||
caddy:
|
||||
caddy run --watch
|
||||
|
||||
dev-prod: migrate collectstatic
|
||||
cd src/web/; PROD=1 poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker
|
||||
cd src/timetracker/; PROD=1 poetry run python -m gunicorn --bind 0.0.0.0:8001 root.asgi:application -k uvicorn.workers.UvicornWorker
|
||||
|
||||
dumptracker:
|
||||
poetry run python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
|
||||
dumpgames:
|
||||
poetry run python src/timetracker/manage.py dumpdata --format yaml games --output tracker_fixture.yaml
|
||||
|
||||
loadplatforms:
|
||||
poetry run python src/web/manage.py loaddata platforms.yaml
|
||||
poetry run python src/timetracker/manage.py loaddata platforms.yaml
|
||||
|
||||
loadsample:
|
||||
poetry run python src/web/manage.py loaddata sample.yaml
|
||||
poetry run python src/timetracker/manage.py loaddata sample.yaml
|
||||
|
||||
createsuperuser:
|
||||
poetry run python src/web/manage.py createsuperuser
|
||||
poetry run python src/timetracker/manage.py createsuperuser
|
||||
|
||||
shell:
|
||||
poetry run python src/web/manage.py shell
|
||||
poetry run python src/timetracker/manage.py shell
|
||||
|
||||
collectstatic:
|
||||
poetry run python src/web/manage.py collectstatic --clear --no-input
|
||||
poetry run python src/timetracker/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 src/web/static/*
|
||||
rm -r src/timetracker/static/*
|
||||
|
||||
clean: cleanstatic
|
||||
|
Reference in New Issue
Block a user