Upgrade guzzle release bundle - ja-guzzle/guzzle_docs GitHub Wiki
Please follow below steps to upgrade guzzle instance.
if you found upgrade script at /opt/guzzlescript/guzzle-upgrade.sh location please use below steps:
export GUZZLE_HOME=/guzzle
export PATH=/opt/guzzlescript/:$PATH
cd /opt/guzzlescript/
./guzzle-upgrade.sh 0.7.19
note: 0.7.19 is a guzzle release version
And If guzzle upgrade script is not available(in case of manual deployment) please follow below manual steps:
export GUZZLE_HOME=/guzzle
export GUZZLE_VERSION=0.7.19
pid=$(sudo ps aux | grep '[a]pi-0.0.1-SNAPSHOT.jar' | awk '{print $2}')
sudo kill $pid
cd ~
wget -q https://guzzlesa.blob.core.windows.net/guzzle-release/guzzle-${GUZZLE_VERSION}.tar.gz
tar xf guzzle-${GUZZLE_VERSION}.tar.gz
cd guzzle-${GUZZLE_VERSION}
cp -rf version.txt $GUZZLE_HOME/version.txt
cp -rf bin/* $GUZZLE_HOME/bin/
cp -rf libs/* $GUZZLE_HOME/libs/
cp -f api/api-0.0.1-SNAPSHOT.jar $GUZZLE_HOME/api/
cp -rf sample_conf/instance/schema/* $GUZZLE_HOME/conf/instance/schema/
cp -rf sample_conf/default/ext/* $GUZZLE_HOME/conf/default/ext/
API_URL=$(grep -oP 'window.API_URL="[^"]+"' $GUZZLE_HOME/web/index.html)
API_DOMAIN=$(grep -oP 'window.API_DOMAIN="[^"]+"' $GUZZLE_HOME/web/index.html)
API_URL_PLACEHOLDER=window.API_URL=\"http://192.168.1.207:9090\"
API_DOMAIN_PLACEHOLDER=window.API_DOMAIN=\"192.168.1.207\"
cp -rf web/* $GUZZLE_HOME/web/
sed -i -e "s#$API_URL_PLACEHOLDER#$API_URL#g" -e "s#$API_DOMAIN_PLACEHOLDER#$API_DOMAIN#g" $GUZZLE_HOME/web/index.html
cd $GUZZLE_HOME/api/
nohup java -Dloader.path=${GUZZLE_HOME}/api/libs -jar api-0.0.1-SNAPSHOT.jar > /dev/null &