#!/bin/bash
pwd

rm -rf /home/qmth/project/examcloud/examcloud-core-questions-distribution.zip
rm -rf /home/qmth/project/examcloud/examcloud-core-questions/lib
rm -rf /home/qmth/project/examcloud/examcloud-core-questions/config

cp examcloud-core-questions-starter/target/examcloud-core-questions-distribution.zip ~/project/examcloud/

cd  ~/project/examcloud/
unzip -o -q examcloud-core-questions-distribution.zip

cd examcloud-core-questions
echo "--spring.profiles.active=test --examcloud.startup.configCenterHost=localhost" > start.args
echo "-server -Xms512m -Xmx512m  -XX:-UseGCOverheadLimit" > start.vmoptions

bash stop.sh
BUILD_ID=DONTKILLME
bash start.sh 110
