summaryrefslogtreecommitdiff
path: root/Procfile
diff options
context:
space:
mode:
authorluc <luc@DebianVM.lan>2016-07-28 02:04:51 +0200
committerluc <luc@DebianVM.lan>2016-07-28 02:04:51 +0200
commita6bf44f4f72c4f17c778982b491260c7d59d52b5 (patch)
treec743403f849211ac7e08358b9fe2653db83ea146 /Procfile
parent47d486298f37ac3bf7f795abefea611a3f5b60e6 (diff)
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
Diffstat (limited to 'Procfile')
-rwxr-xr-xProcfile2
1 files changed, 1 insertions, 1 deletions
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