Skip to content

Commit

Permalink
Merge pull request #64 from polifonia-project/hotfix/vagrant-not-start
Browse files Browse the repository at this point in the history
Fixed vagrant not running fixed
  • Loading branch information
marilenadaquino committed May 5, 2023
2 parents ff8b103 + 19f59bf commit 34c3f51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 34c3f51

Please sign in to comment.