掲示板

Portal restart

8年前 に sam md によって更新されました。

Portal restart

New Member 投稿: 13 参加年月日: 15/11/23 最新の投稿
HI all,


I am trying to restart the portal server after liferay deployment through python script. Which I cant able to do it because of improper syntax.


Can anyone of you help me in by providing python script for portal server restart please.



Thank you
sam
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Portal restart

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Maybe you should ask on the python forums since this is not Liferay related.
8年前 に sam md によって更新されました。

RE: Portal restart

New Member 投稿: 13 参加年月日: 15/11/23 最新の投稿
David,


Yes that issue was solved. Thank you so much.



Regards
Sikender
8年前 に sam md によって更新されました。

RE: Portal restart

New Member 投稿: 13 参加年月日: 15/11/23 最新の投稿
David,



Can we compile multiple portlets at a time? Do we have such pom.xml files to compile more than one portlets at a time. Can you please let me know.



Thank you
sam
thumbnail
8年前 に Andrew Jardine によって更新されました。

RE: Portal restart

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Sam,

This would depend on how you have your structure done. Assuming you have 3 portlets, and have created 3 separate portlet plugin projects, then yes -- you can run mvn clean package liferay:deploy on each of the projects (think of it as 3 terminal windows each running the same command but in different directories).

All the files will be copied to the deploy forlder that Liferay monitors and we'll be "hot deployed". The order of the hot deployment is FIFO unless you have configured context dependencies between them in which case portelts missing dependencies will be queued until the dependency is met.
8年前 に sam md によって更新されました。

RE: Portal restart

New Member 投稿: 13 参加年月日: 15/11/23 最新の投稿
Hi Andrew,


Thank you for your response. Can't I compile multiple projects in one project ? Like is there any way we could get maven script for multiple portlets to compile.


Thank you
Best Regards
Sikender
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Portal restart

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
A single project can contain multiple plugins.

With maven, you can build a parent project that would contain multiple modules. This is a maven exercise, however, and not really Liferay specific.
8年前 に sam md によって更新されました。

RE: Portal restart

New Member 投稿: 13 参加年月日: 15/11/23 最新の投稿
David,



Thank you
thumbnail
8年前 に Jack Bakker によって更新されました。

RE: Portal restart

Liferay Master 投稿: 978 参加年月日: 10/01/03 最新の投稿
sam md:
Can't I compile multiple projects in one project ? Like is there any way we could get maven script for multiple portlets to compile.


On linux, I have the following in my .bash_aliases, so that I can navigate into a project and just type mvnccpl. I suppose a script could also be created to do this for multiple projects.


MAVEN_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=512m"

mvnrun(){
  echo mvn $@
  eval mvn $@
  echo mvn $@
}

alias mvnccpl='mvnrun -Dmaven.test.skip=true clean compile package liferay:deploy'
8年前 に sam md によって更新されました。

RE: Portal restart

New Member 投稿: 13 参加年月日: 15/11/23 最新の投稿
Jack,


Thank you so much for your response. It will be helpful for writing a script for me.



Best Regards
Sam