Skip to content

Commit

Permalink
fix Vagrantfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marilenadaquino authored May 8, 2023
1 parent 6aba156 commit 15ab510
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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 All @@ -67,4 +69,4 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "shell", run: "always", inline: $install, privileged: true
config.vm.provision "shell", run: "always", inline: $web_install, privileged: false
config.vm.provision "shell", run: "always", inline: $web_run, privileged: false
end
end

0 comments on commit 15ab510

Please sign in to comment.