Skip to content

Commit 4470224

Browse files
committed
adapt Makefile
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 7229703 commit 4470224

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ run:
1818
@echo "-> Run the Docker compose services in dev mode (hot reload on code changes)"
1919
${COMPOSE} up
2020

21+
superuser:
22+
${MANAGE} createsuperuser
23+
2124
########################################################################################
2225

2326
VENV_LOCATION=.venv
2427
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
25-
MANAGE=${VENV_LOCATION}/bin/python manage.py
28+
#MANAGE=${VENV_LOCATION}/bin/python manage.py
2629
# Do not depend on Python to generate the SECRET_KEY
2730
GET_SECRET_KEY=`head -c50 /dev/urandom | base64 | head -c50`
2831
# Customize with `$ make envfile ENV_FILE=/etc/dejacode/.env`
@@ -208,7 +211,4 @@ psql:
208211
log:
209212
${DOCKER_COMPOSE} logs --tail="100" ${SERVICE}
210213

211-
createsuperuser:
212-
${DOCKER_EXEC} web ./manage.py createsuperuser
213-
214-
.PHONY: virtualenv conf dev lock upgrade envfile envfile_dev check outdated doc8 valid check-deploy clean initdb postgresdb postgresdb_clean migrate run test docs build psql bash shell log createsuperuser
214+
.PHONY: virtualenv conf dev lock upgrade envfile envfile_dev check outdated doc8 valid check-deploy clean initdb postgresdb postgresdb_clean migrate run test docs build psql bash shell log superuser

0 commit comments

Comments
 (0)