Forums

angle-left Back

Deploying in war

Chris Jurado, modified 1 Year ago.

Deploying in war

Junior Member Posts: 66 Join Date: 7/15/10 Recent Posts
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
Jorge Díaz, modified 1 Year ago.

RE: Deploying in war

LIFERAY STAFF Liferay Master Posts: 623 Join Date: 1/9/14 Recent Posts
The preferred way to deploy everything (war, osgi jars and lpgks) is to copy the file to ${liferay-home}/deploy folder
Chris Jurado, modified 1 Year ago.

RE: Deploying in war

Junior Member Posts: 66 Join Date: 7/15/10 Recent Posts
Okay thanks.

Just out of curiosity, what's the difference? Thanks!
Jorge Díaz, modified 1 Year ago.

RE: Deploying in war

LIFERAY STAFF Liferay Master Posts: 623 Join Date: 1/9/14 Recent Posts
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.
Chris Jurado, modified 1 Year ago.

RE: Deploying in war

Junior Member Posts: 66 Join Date: 7/15/10 Recent Posts
Thanks very much!
Vernon Singleton, modified 1 Year ago.

RE: Deploying in war

LIFERAY STAFF Expert Posts: 315 Join Date: 1/14/13 Recent Posts
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
Chris Jurado, modified 1 Year ago.

RE: Deploying in war

Junior Member Posts: 66 Join Date: 7/15/10 Recent Posts
Makes sense,

Thanks!