Call initialize in hybris from Java
Call initialize in hybris from Java
I want to initialize a demo hybris system every 2 days. How can I call the initialize from a Cronjob?
I already searched for it but didn't found any solutions
ant initialize
1 Answer
1
You can initialize your system through ant target ant initialize. Configure a shell script in crontab like...
ant initialize
hybrisServer.sh
cd /opt/app/hybris/bin/platform/
./hybrisserver.sh stop
. ./setantenv.sh
ant initialize
./hybrisserver.sh start
crontab -e
0 24 */2 * * hybrisServer.sh
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
write one shell script and call
ant initialize– HybrisHelp
Sep 5 '18 at 12:17