diff --git a/.gitignore b/.gitignore index d5f3ef4..98b0933 100644 --- a/.gitignore +++ b/.gitignore @@ -126,3 +126,5 @@ docker/production/media docker/test/media *.csv + +jdav_web/static/docs diff --git a/docker/development/entrypoint-master.sh b/docker/development/entrypoint-master.sh index c5c218d..b43b3eb 100755 --- a/docker/development/entrypoint-master.sh +++ b/docker/development/entrypoint-master.sh @@ -33,6 +33,10 @@ cd /app if ! [ -f /tmp/completed_initial_run ]; then echo 'Initialising kompass master container' + cd docs + make html + cd /app + python jdav_web/manage.py compilemessages --locale de # python jdav_web/manage.py makemigrations diff --git a/docker/production/entrypoint-master.sh b/docker/production/entrypoint-master.sh index d07446a..3ecdd40 100755 --- a/docker/production/entrypoint-master.sh +++ b/docker/production/entrypoint-master.sh @@ -7,6 +7,11 @@ cd /app if ! [ -f completed_initial_run ]; then echo 'Initialising kompass master container' + cd docs + make html + cp -r build/html /app/jdav_web/static/docs + cd /app + python jdav_web/manage.py collectstatic --noinput python jdav_web/manage.py compilemessages --locale de