2022-06-09 22:20:40 +01:00
|
|
|
set dotenv-load
|
|
|
|
|
|
|
|
# Load virtualenv
|
|
|
|
export PATH := justfile_directory() + "/env/bin:" + env_var('PATH')
|
|
|
|
|
|
|
|
# Dev environment
|
|
|
|
export DEBUG := "true"
|
|
|
|
export SECRET_KEY := "super-secret-key"
|
|
|
|
|
|
|
|
# Recipes
|
|
|
|
@default:
|
|
|
|
just --list
|
|
|
|
|
|
|
|
install:
|
|
|
|
python -m venv env
|
|
|
|
pip install -r dev-requirements.txt
|
|
|
|
|
|
|
|
@start:
|
|
|
|
honcho start
|
|
|
|
|
|
|
|
@manage +ARGS:
|
|
|
|
./manage.py {{ ARGS }}
|
|
|
|
|
|
|
|
@collectstatic:
|
|
|
|
./manage.py collectstatic --noinput -v2
|
2022-06-10 16:22:20 +01:00
|
|
|
|
|
|
|
test *ARGS:
|
|
|
|
./manage.py test {{ ARGS }}
|