- Save version in prod to be able to come back to the current version
- Uncompress war
unzip beebiome-api-0.1-SNAPSHOT.war -d beebiome
- Compare properties files
sdiff /var/lib/tomcat8/webapps/beebiome/WEB-INF/classes/application.properties beebiome/WEB-INF/classes/application.properties
- Set correctly properties in beebiome/WEB-INF/classes/application.properties or copy file from current version
cp -p /var/lib/tomcat8/webapps/beebiome/WEB-INF/classes/application.properties beebiome/WEB-INF/classes/application.properties
- Empty repository in Tomcat
rm -rf /var/lib/tomcat8/webapps/beebiome/*
- Copy repository in Tomcat
/bin/cp -pR beebiome/* /var/lib/tomcat8/webapps/beebiome/
- Reload the api in Tomcat manager (application: /beebiome)
- Save version in prod to be able to come back to the current version
- Uncompress war
unzip beebiome-web.war -d beebiome-web
- Empty repository in Tomcat
rm -rf /var/lib/tomcat8/webapps/beebiome-web/*
- Copy repository in Tomcat
/bin/cp -pR beebiome-web/* /var/lib/tomcat8/webapps/beebiome-web/