diff options
| author | luc <luc@DebianVM.lan> | 2016-07-28 02:04:51 +0200 |
|---|---|---|
| committer | luc <luc@DebianVM.lan> | 2016-07-28 02:04:51 +0200 |
| commit | a6bf44f4f72c4f17c778982b491260c7d59d52b5 (patch) | |
| tree | c743403f849211ac7e08358b9fe2653db83ea146 /Procfile | |
| parent | 47d486298f37ac3bf7f795abefea611a3f5b60e6 (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-x | Procfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
