SAP Commerce 1905
I have one node application which i want to integrate with my Hybris. I have created one custom addon and put my node application files inside addon extension. Now i want to run the below command on Hybris server start.
nohup npm start > output.log&
I am able to start my node server on ant build by putting npm command under myextension_compileuisrc_executor buildcallback.
But my goal is to perform only npm install on myextension_compileuisrc_executor not node server start.
Thats why i am looking over the way of starting node.js server on Hybris Server Start. I could not find any target in buildcallback where i can inject my server start command.
How to achieve that ?
UPDATE :
Tried with myextension_before_startHybrisServer as well but no luck -
<macrodef name="myextension_before_startHybrisServer">
<sequential>
<npm-start/>
</sequential>
</macrodef>
Hi I tried to write the normal macro
<sequential>
<echo message="JJJJJJ RAUSHAN JAAAA" />
</sequential>
</macrodef>
output:
[echo] JJJJJJ RAUSHAN JAAAA
[echo] Checking lock flag for the platform
[exec] --> Wrapper Started as Console
[exec] Java Service Wrapper Professional Edition 64-bit 3.5.29
Command: >ant startHybrisServer