dj-port := "0.0.0.0:" + env_var_or_default("DJANGO_PORT", "8000")

default:
    @just --list

django:
    poetry run python manage.py runserver {{dj-port}}

shell:
    poetry run python manage.py shell

celery:
    poetry run celery -A vrobbler worker -l info --concurrency=2 --pool=threads

celery-beat:
    poetry run celery -A vrobbler beat -l info

push:
    git push && git push gitea
    git push --tags && git push --tags gitea

release kind="minor":
    poetry run python scripts/release.py {{kind}}
    just push
    
