From a6bf44f4f72c4f17c778982b491260c7d59d52b5 Mon Sep 17 00:00:00 2001 From: luc Date: Thu, 28 Jul 2016 02:04:51 +0200 Subject: Simplified Heroku variables configuration - 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 --- Procfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Procfile') diff --git a/Procfile b/Procfile index e6944606a..50c25322f 100755 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: java $JAVA_OPTS -Dnet.yacy.server.localPort=$PORT -classpath target/classes:lib/* net.yacy.yacy \ No newline at end of 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 \ No newline at end of file -- cgit v1.2.3