Introduce new SERVER_PATH variable. Create Readme.md for docker information (#1254)

This commit is contained in:
Martin Muller
2019-11-22 11:11:39 +01:00
committed by GitHub
parent 4175471c01
commit 236d80106d
3 changed files with 30 additions and 2 deletions
+9
View File
@@ -81,4 +81,13 @@ if [ -n "${APP_BASE_SHARE_URL}" ];then
cat /tmp/app.config.json > ./app.config.json
fi
if [[ $SERVER_PATH ]]; then
mkdir -p .$SERVER_PATH
cp -R * .$SERVER_PATH
replace="\/"
encoded=${SERVER_PATH//\//$replace}
sed -ri 's%href=".?/"%href="'$encoded/'"%g' /tmp/index.html && \
cat /tmp/index.html > .$SERVER_PATH/index.html
fi
nginx -g "daemon off;"