Foren

Deploying in war

thumbnail
Chris Jurado, geändert vor 6 Jahren.

Deploying in war

Junior Member Beiträge: 66 Beitrittsdatum: 16.07.10 Neueste Beiträge
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
thumbnail
Jorge Díaz, geändert vor 6 Jahren.

RE: Deploying in war

Liferay Master Beiträge: 753 Beitrittsdatum: 09.01.14 Neueste Beiträge
The preferred way to deploy everything (war, osgi jars and lpgks) is to copy the file to ${liferay-home}/deploy folder
thumbnail
Chris Jurado, geändert vor 6 Jahren.

RE: Deploying in war

Junior Member Beiträge: 66 Beitrittsdatum: 16.07.10 Neueste Beiträge
Okay thanks.

Just out of curiosity, what's the difference? Thanks!
thumbnail
Jorge Díaz, geändert vor 6 Jahren.

RE: Deploying in war

Liferay Master Beiträge: 753 Beitrittsdatum: 09.01.14 Neueste Beiträge
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.
thumbnail
Chris Jurado, geändert vor 6 Jahren.

RE: Deploying in war

Junior Member Beiträge: 66 Beitrittsdatum: 16.07.10 Neueste Beiträge
Thanks very much!
thumbnail
Vernon Singleton, geändert vor 6 Jahren.

RE: Deploying in war

Expert Beiträge: 315 Beitrittsdatum: 14.01.13 Neueste Beiträge
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
thumbnail
Chris Jurado, geändert vor 6 Jahren.

RE: Deploying in war

Junior Member Beiträge: 66 Beitrittsdatum: 16.07.10 Neueste Beiträge
Makes sense,

Thanks!