Commit e0ff56e8 authored by hging's avatar hging

fix can't custom server port use docker environment

parent 5c5c3906
...@@ -38,8 +38,9 @@ if [ ! -f "/opt/b3log/solo/WEB-INF/classes/local.properties" ]; then ...@@ -38,8 +38,9 @@ if [ ! -f "/opt/b3log/solo/WEB-INF/classes/local.properties" ]; then
cat /opt/b3log/tmp/latke.properties | sed \ cat /opt/b3log/tmp/latke.properties | sed \
-e "s|{{SERVER_SCHMEA}}|${SERVER_SCHMEA:-http}|g" \ -e "s|{{SERVER_SCHMEA}}|${SERVER_SCHMEA:-http}|g" \
-e "s|{{SERVER_NAME}}|${SERVER_NAME:-localhost}|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 > /opt/b3log/solo/WEB-INF/classes/latke.properties
cat /opt/b3log/tmp/mail.properties | sed \ cat /opt/b3log/tmp/mail.properties | sed \
-e "s|{{EMAIL_ADDRESS}}|${EMAIL_ADDRESS}|g" \ -e "s|{{EMAIL_ADDRESS}}|${EMAIL_ADDRESS}|g" \
-e "s|{{EMAIL_PASSWORD}}|${EMAIL_PASSWORD}|g" \ -e "s|{{EMAIL_PASSWORD}}|${EMAIL_PASSWORD}|g" \
......
...@@ -28,7 +28,7 @@ serverScheme={{SERVER_SCHMEA}} ...@@ -28,7 +28,7 @@ serverScheme={{SERVER_SCHMEA}}
# Browser visit domain name # Browser visit domain name
serverHost={{SERVER_NAME}} serverHost={{SERVER_NAME}}
# Browser visit port, 80 as usual, THIS IS NOT SERVER LISTEN PORT! # Browser visit port, 80 as usual, THIS IS NOT SERVER LISTEN PORT!
serverPort=8080 serverPort={{SERVER_PORT}}
#### Cookie #### #### Cookie ####
cookieName=solo 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