Commit bc7337ee authored by D's avatar D Committed by GitHub

Merge pull request #12465 from hging/master

fix can't custom server port use docker environment
parents 5c5c3906 e0ff56e8
......@@ -38,6 +38,7 @@ if [ ! -f "/opt/b3log/solo/WEB-INF/classes/local.properties" ]; then
cat /opt/b3log/tmp/latke.properties | sed \
-e "s|{{SERVER_SCHMEA}}|${SERVER_SCHMEA:-http}|g" \
-e "s|{{SERVER_NAME}}|${SERVER_NAME:-localhost}|g" \
-e "s|{{SERVER_PORT}}|${SERVER_PORT:-8080}|g" \
> /opt/b3log/solo/WEB-INF/classes/latke.properties
cat /opt/b3log/tmp/mail.properties | sed \
......
......@@ -28,7 +28,7 @@ serverScheme={{SERVER_SCHMEA}}
# Browser visit domain name
serverHost={{SERVER_NAME}}
# Browser visit port, 80 as usual, THIS IS NOT SERVER LISTEN PORT!
serverPort=8080
serverPort={{SERVER_PORT}}
#### Cookie ####
cookieName=solo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment