...
| Bloc de code |
|---|
| language | bash |
|---|
| theme | RDark |
|---|
| title | Production du WAR |
|---|
|
cd /opt/estage
mvn -Dmaven.test.skip=true clean package |
| Bloc de code |
|---|
| language | bash |
|---|
| theme | RDark |
|---|
| title | Copie du WAR pour déploiement : |
|---|
|
cp /opt/esupstage/target/ROOT.war /opt/tomcat-esup-stage/webapp/ |
On arrête le tomcat avant et on le redémarre ensuite
| Bloc de code |
|---|
| language | bash |
|---|
| theme | RDark |
|---|
| title | Production Arrêt du WARtomcat : |
|---|
|
/opt/tomcat-esup-stage/bin/shutdown.sh |
...
| Info |
|---|
|
Pensez à paramétrer les espaces mémoire JVM : export JAVA\_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m" |
Démarrage :
| Bloc de code |
|---|
| language | bash |
|---|
| theme | RDark |
|---|
| title | Production du WARDémarrage : |
|---|
|
/opt/tomcat-esup-stage/bin/startup.sh |
...
| Bloc de code |
|---|
| language | bash |
|---|
| theme | RDark | title | Production du WAR |
|---|
|
java -jar /opt/estage/target/ROOT.war |
...