From 0bbc01ba1d02bd0be11c644888ea7bf64398d203 Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Mon, 3 Jun 2024 11:56:53 +0200 Subject: [PATCH] Add "mvn install" to start script When calling this script it should also build. This is good for automatic deployment. Resolves e.g. https://github.com/hbz/lobid-resources/issues/2000#issuecomment-2144660039. --- web/monit_restart.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/web/monit_restart.sh b/web/monit_restart.sh index c1bad293d..bb0decde2 100755 --- a/web/monit_restart.sh +++ b/web/monit_restart.sh @@ -34,6 +34,7 @@ ETL_TOKEN=$(cat scripts/.secrets/ETL_TOKEN) case $ACTION in start) + cd ..; mvn clean install -DskipTests=true; cd - if [ -f target/universal/stage/RUNNING_PID ]; then kill $(cat target/universal/stage/RUNNING_PID) rm target/universal/stage/RUNNING_PID