diff --git a/ldvspec/docker-entrypoint.sh b/ldvspec/docker-entrypoint.sh new file mode 100644 index 0000000000000000000000000000000000000000..09b4b547c46789c7ca0337a4f6b7dc78c32714b7 --- /dev/null +++ b/ldvspec/docker-entrypoint.sh @@ -0,0 +1,2 @@ + python manage.py collectstatic --settings=ldvspec.settings.docker_sdc --noinput + python manage.py migrate --settings=ldvspec.settings.docker_sdc \ No newline at end of file diff --git a/ldvspec/docker/docker-compose-dev-cd.yml b/ldvspec/docker/docker-compose-dev-cd.yml index 1c581c8cb528407f6dd211904684c0784143c8e9..47580ae369757713073c837639469e414375275f 100644 --- a/ldvspec/docker/docker-compose-dev-cd.yml +++ b/ldvspec/docker/docker-compose-dev-cd.yml @@ -45,6 +45,7 @@ services: - ldv-spec-db env_file: - $HOME/shared/ldvspec.env + command: docker-entrypoint.sh restart: always volumes: