From d972cc24de4bb91e4f482d3d14b1268dd7a7ed7f Mon Sep 17 00:00:00 2001 From: jeroen Date: Wed, 21 Sep 2022 16:13:26 +0200 Subject: [PATCH] We don't need WebUI to run database commands --- entrypoint.daemon.sh | 2 +- entrypoint.webui.sh | 41 +---------------------------------------- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/entrypoint.daemon.sh b/entrypoint.daemon.sh index 87d2929..7769187 100644 --- a/entrypoint.daemon.sh +++ b/entrypoint.daemon.sh @@ -31,7 +31,7 @@ file_env() { # envs that can be appended with _FILE envs=( - APP_ENV + APP_ENV DATABASE_URL DEMO_MODE DEMO_USER diff --git a/entrypoint.webui.sh b/entrypoint.webui.sh index 51869b4..ff30b3f 100644 --- a/entrypoint.webui.sh +++ b/entrypoint.webui.sh @@ -31,7 +31,7 @@ file_env() { # envs that can be appended with _FILE envs=( - APP_ENV + APP_ENV DATABASE_URL DEMO_MODE DEMO_USER @@ -90,45 +90,6 @@ else echo "Will not build the locales..." fi -echo "Run various symfony commands..." - -if [[ $DKR_RUN_MIGRATION == "false" ]]; then - echo "Will NOT run migration commands." -else - echo "Running migration commands..." - php bin/console doctrine:migrations:migrate --no-interaction -fi - -echo "Current working dir is '$(pwd)'" - - -# there are 0 upgrade commands -if [[ $DKR_RUN_UPGRADE == "false" ]]; then - echo 'Will NOT run upgrade commands.' -else - echo 'Running upgrade commands...' -fi - -# there are 0 verify commands -if [[ $DKR_RUN_VERIFY == "false" ]]; then - echo 'Will NOT run verification commands.' -else - echo 'Running verification commands...' -fi - -# report commands -if [[ $DKR_RUN_REPORT == "false" ]]; then - echo 'Will NOT run report commands.' -else - echo 'Running report commands...' -fi - -# report commands -if [[ $DEMO_MODE == "true" ]]; then - echo 'Installing demo data' - su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console webcron:demodata" -fi - php bin/console cache:clear php bin/console cache:warm