Ir al contenido

Consejos de desarrollo

Para un desarrollo más rápido, recomendamos no desplegar openkm_.war_ directamente; en su lugar, cree en $TOMCAT_HOME/webapps un alias de carpeta hacia target/openkm:

Puede usar un script de despliegue:

#!/bin/bash
#Cleans and re-compiles the source files
mvn -Dmaven.test.skip=true clean install $*
#Set the TARGET_DIRECTORY to the path of your tomcat installation
TARGET_DIRECTORY=~/Downloads/tomcat-10.1.25/
FILE_TO_MOVE=target/openkm.war
#This will only attempt to replace the existing WAR if the new WAR exists
if [ -f $FILE_TO_MOVE ]
then
echo 'Deploying WAR to Tomcat Directory'
cp -v $FILE_TO_MOVE $TARGET_DIRECTORY/webapps/.
echo 'Done'
fi