idhub_init_data #1
3
Makefile
3
Makefile
|
@ -50,3 +50,6 @@ docker_publish:
|
|||
docker:
|
||||
$(MAKE) docker_build
|
||||
$(MAKE) docker_publish
|
||||
|
||||
docker_down:
|
||||
docker compose down -v
|
||||
|
|
|
@ -17,6 +17,9 @@ main() {
|
|||
# move the migrate thing in docker entrypoint
|
||||
# inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc
|
||||
./manage.py migrate
|
||||
|
||||
printf "creating initial Datas\n" >&2
|
||||
./manage.py initial_datas
|
||||
#./manage.py collectstatic
|
||||
|
||||
printf "creating superuser \n user: ${DJANGO_SUPERUSER_USERNAME}\n password: ${DJANGO_SUPERUSER_PASSWORD}\n email: ${DJANGO_SUPERUSER_EMAIL}\n" >&2
|
||||
|
|
Reference in New Issue