-
-
Save smford22/2418c7b69889340569844eb8d631a7a5 to your computer and use it in GitHub Desktop.
National Parks -- run hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
{{#if bind.database ~}} | |
export CATALINA_OPTS="-DMONGODB_SERVICE_HOST={{bind.database.first.sys.ip}} -DMONGODB_SERVICE_PORT={{bind.database.first.cfg.port}} -DMONGODB_DATABASE={{cfg.mongodb_database}}" | |
{{/if ~}} | |
export JAVA_HOME="{{pkgPathFor "core/jre8"}}" | |
export TOMCAT_HOME="{{pkgPathFor "core/tomcat8"}}/tc" | |
cp {{pkg.path}}/*.war $TOMCAT_HOME/webapps | |
exec ${TOMCAT_HOME}/bin/catalina.sh run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this should be: