From 30464f53249f0690fd5563cede6703676c10b859 Mon Sep 17 00:00:00 2001
From: MajoBerger <88670521+MajoBerger@users.noreply.github.com>
Date: Tue, 7 Nov 2023 14:22:08 +0100
Subject: [PATCH] debug and fix deploy and import

---
 .github/workflows/deploy.yml | 3 ++-
 build-scripts/run/start.sh   | 7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index d0bfb93f209..44ecabe1b7f 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -45,9 +45,10 @@ jobs:
         run: |
           ENVFILE=/opt/dspace-envs/.env.dspace.imported.dev-5 ./start.sh dspace-5-import
           sleep 120
+          echo "done with start.sh, going to request import"
           curl -H "Accept: application/vnd.github.everest-preview+json" \
           -H "Authorization: token ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}" \
           --request POST \
-          https://api.github.com/repos/dataquest-dev/ \
+          https://api.github.com/repos/dataquest-dev/\
           dspace-angular/actions/workflows/import.yml/dispatches \
           --data "{\"ref\":\"refs/heads/dtq-dev\"}"
diff --git a/build-scripts/run/start.sh b/build-scripts/run/start.sh
index 1e65f151b84..be32995b332 100755
--- a/build-scripts/run/start.sh
+++ b/build-scripts/run/start.sh
@@ -1,7 +1,8 @@
 #!/bin/bash
-
+echo "testing existence of envfile"
 if [[ "x$ENVFILE" == "x" ]]; then
     export ENVFILE=$(pwd)/envs/.default
+    echo "setting up new envfile"
 fi
 
 source $ENVFILE
@@ -17,8 +18,8 @@ popd
 # Create admin user
 # set DOCKER_OWNER to match our image (see cli.yml)
 pushd ../..
-docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml pull
-docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml up -d --no-build
+#docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml pull
+#docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/matomo-w-db.yml up -d --no-build
 docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/cli.yml run --rm dspace-cli create-administrator -e test@test.edu -f admin -l user -p admin -c en -o dataquest
 docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/cli.yml run --rm dspace-cli user --add -m user@test.edu -g meno -s priezvisko -l en -p user -o dataquest
 docker compose --env-file $ENVFILE -p ${1:-unnamed_dspace} -f docker/cli.yml run --rm dspace-cli version