diff --git a/Frontend Angular 4/package.json b/Frontend Angular 4/package.json index 4d7d3a533b443ed26fe67018be3bafc785d1bfad..7bb84b34474f0739a84143125a0890288b486c6a 100755 --- a/Frontend Angular 4/package.json +++ b/Frontend Angular 4/package.json @@ -5,7 +5,7 @@ "scripts": { "ng": "ng", "start": "ng serve -o --port 0", - "build": "ng build", + "build": "ng build --configuration production", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" diff --git a/generate-war.sh b/generate-war.sh index 9ff7b7289c4ab0aacbc97a14748c42e1a4a47976..cd7ae35ba7600542de2d551af4ffe5d26adb9d97 100755 --- a/generate-war.sh +++ b/generate-war.sh @@ -1,6 +1,20 @@ -# editar tambien: Frontend\ Angular\ 4/src/app/shared/config.ts +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# Hay que asegurarse que las variables SERVER y GHCI_URL coinciden con la ruta +# en que se despliegan los servicios. Para ello, editar el archivo +# /Frontend\ Angular\ 4/src/app/shared/config.ts +# +# Los servicios y la aplicacion se despliegan en la ruta configurada en el tag +# <context-root> del archivo: +# /Frontend/Servidor JEE/WebContent/WEB-INF/jboss-web.xml +# +# Hay que asegurarse que el --base-href coincida con la ruta en la que se +# despliega la aplicacion. En otras palabras, el --base-href y el contenido +# del tag <context-root> DEBEN COINCIDIR. +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + + cd Frontend\ Angular\ 4/ -ng build --prod --base-href /proyectos/matefun/ +npx ng build --configuration production --base-href /proyectos/matefun/ cd .. cp -R Frontend\ Angular\ 4/dist/* Servidor\ JEE/WebContent/ cd Servidor\ JEE/