mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-02-02 06:38:42 -05:00
a6bf44f4f7
- Having well defined variables is more readable than configuring everything in MAVEN_CUSTOM_OPTS - Do not provide a default admin password value : people deploying on Heroku for testing or demonstration purpose would likely forget to customize this password, which would be a security flaw - reduce Heroku specific impacts on existing pom.xml
1 line
426 B
Plaintext
Executable File
1 line
426 B
Plaintext
Executable File
web: if [ "" != "$YACY_INIT_ADMIN_PASSWORD" ] ; then sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=$YACY_INIT_ADMIN_PASSWORD" defaults/yacy.init;fi && sed -i "/port = 8090/c\port = 80" defaults/yacy.init && if [ "" != "$YACY_PUBLIC_URL" ] ; then sed -i "/staticIP=/c\staticIP=$YACY_PUBLIC_URL" defaults/yacy.init;fi && java $JAVA_OPTS -Dnet.yacy.server.localPort="$PORT" -classpath target/classes:lib/* net.yacy.yacy |