Fórum

Portal restart

sam md, modificado 8 Anos atrás.

Portal restart

New Member Postagens: 13 Data de Entrada: 23/11/15 Postagens Recentes
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
David H Nebinger, modificado 8 Anos atrás.

RE: Portal restart

Liferay Legend Postagens: 14918 Data de Entrada: 02/09/06 Postagens Recentes
Maybe you should ask on the python forums since this is not Liferay related.
sam md, modificado 8 Anos atrás.

RE: Portal restart

New Member Postagens: 13 Data de Entrada: 23/11/15 Postagens Recentes
David,


Yes that issue was solved. Thank you so much.



Regards
Sikender
sam md, modificado 8 Anos atrás.

RE: Portal restart

New Member Postagens: 13 Data de Entrada: 23/11/15 Postagens Recentes
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
Andrew Jardine, modificado 8 Anos atrás.

RE: Portal restart

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
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.
sam md, modificado 8 Anos atrás.

RE: Portal restart

New Member Postagens: 13 Data de Entrada: 23/11/15 Postagens Recentes
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
David H Nebinger, modificado 8 Anos atrás.

RE: Portal restart

Liferay Legend Postagens: 14918 Data de Entrada: 02/09/06 Postagens Recentes
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.
sam md, modificado 8 Anos atrás.

RE: Portal restart

New Member Postagens: 13 Data de Entrada: 23/11/15 Postagens Recentes
David,



Thank you
thumbnail
Jack Bakker, modificado 8 Anos atrás.

RE: Portal restart

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
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'
sam md, modificado 8 Anos atrás.

RE: Portal restart

New Member Postagens: 13 Data de Entrada: 23/11/15 Postagens Recentes
Jack,


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



Best Regards
Sam