Foros de discusión
Deploying in war
Chris Jurado, modificado hace 6 años.
Deploying in war
Junior Member Mensajes: 66 Fecha de incorporación: 16/07/10 Mensajes recientes
So I noticed that I can deploy my JSF portlets to Liferay 7 by either dropping it into the /deploy folder or in the /osgi/war folder. Is there a preferred way to do it, or is the /deploy folder only a legacy option?
Thanks
Thanks
Jorge Díaz, modificado hace 6 años.
RE: Deploying in war
Liferay Master Mensajes: 753 Fecha de incorporación: 9/01/14 Mensajes recientes
The preferred way to deploy everything (war, osgi jars and lpgks) is to copy the file to ${liferay-home}/deploy folder
Chris Jurado, modificado hace 6 años.
RE: Deploying in war
Junior Member Mensajes: 66 Fecha de incorporación: 16/07/10 Mensajes recientes
Okay thanks.
Just out of curiosity, what's the difference? Thanks!
Just out of curiosity, what's the difference? Thanks!
Jorge Díaz, modificado hace 6 años.
RE: Deploying in war
Liferay Master Mensajes: 753 Fecha de incorporación: 9/01/14 Mensajes recientes
Liferay deployer monitors deploy folder and does different actions depending on file type.
In the specific case of war files, they are copied to /osgi/war folder by deployer monitor, but I don't know deployer is doing additional actions or not.
So I think it is safer to deploy to /deploy folder in order to trigger deployer logic.
In the specific case of war files, they are copied to /osgi/war folder by deployer monitor, but I don't know deployer is doing additional actions or not.
So I think it is safer to deploy to /deploy folder in order to trigger deployer logic.
Chris Jurado, modificado hace 6 años.
RE: Deploying in war
Junior Member Mensajes: 66 Fecha de incorporación: 16/07/10 Mensajes recientes
Thanks very much!
Vernon Singleton, modificado hace 6 años.
RE: Deploying in war
Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Hi Chris,
Putting artifacts in $LIFERAY_HOME/deploy is a legacy convention and backwards-compatible convenience, but it is fine to copy directly to the $LIFERAY_HOME/osgi/war folder which has the small benefit of not incurring the copy/move operation from $LIFERAY_HOME/deploy.
Hope that helps,
Vernon
Putting artifacts in $LIFERAY_HOME/deploy is a legacy convention and backwards-compatible convenience, but it is fine to copy directly to the $LIFERAY_HOME/osgi/war folder which has the small benefit of not incurring the copy/move operation from $LIFERAY_HOME/deploy.
Hope that helps,
Vernon
Chris Jurado, modificado hace 6 años.
RE: Deploying in war
Junior Member Mensajes: 66 Fecha de incorporación: 16/07/10 Mensajes recientes
Makes sense,
Thanks!
Thanks!