Skip to content
Snippets Groups Projects
Commit 9864371e authored by ncamera's avatar ncamera
Browse files

Actualizar script generate-war

En muchos casos, no se dispone de una instalación de Angular global, es por esto que hay que usar npx antes del comando ng, para que así use la instalación de Angular local del repositorio.
parent 519e313c
No related branches found
No related tags found
1 merge request!1Se actualiza Angular a la versión 13 y se resuelven vulnerabilidades
......@@ -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"
......
# 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/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment