From 19f59bfb692fca6c7ad374f004cf9e2f6f42688a Mon Sep 17 00:00:00 2001 From: Martin Hlosta Date: Fri, 5 May 2023 10:13:44 +0100 Subject: [PATCH] Fixed vagrant not running --- Vagrantfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 681d686..0c7e410 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -41,13 +41,15 @@ APP_DIR="/app" WEBAPP_PORT=8080 echo -n "Running Blazegraph..." -lsof -ti tcp:${BLAZEGRAPH_PORT} | xargs kill -java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -server -Xmx2g -Djetty.port=${BLAZEGRAPH_PORT} -Dbigdata.propertyFile=$BLAZEGRAPH_PROPERTY_FILE -jar $BLAZEGRAPH_PATH & -sleep 3 +lsof -ti tcp:${BLAZEGRAPH_PORT} | xargs --no-run-if-empty kill +java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -server -Xmx2g -Djetty.port=${BLAZEGRAPH_PORT} -Dbigdata.propertyFile=$BLAZEGRAPH_PROPERTY_FILE -Djetty.start.timeout=60 -jar $BLAZEGRAPH_PATH & +sleep 10 echo -n "Running webapp..." cd $APP_DIR python3 app.py $WEBAPP_PORT & +echo -n "Webapp should be running..." +sleep 5 SCRIPT Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|