chore: properly add default port and blog name value

This commit is contained in:
Winston Smith 2023-11-23 11:13:44 +01:00
parent e0b18ba01f
commit d436b32e37
No known key found for this signature in database
GPG Key ID: DFD784DB2A6F7A07
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export SITE_PATH="/app/jekyll/$BLOG_NAME"
export SITE_TITLE=$SITE_TITLE
export THEME=$THEME
export TWITTER_USERNAME=$TWITTER_USERNAME
export WWW_PORT=${WWW_PORT:-4000}
export WWW_PORT=$WWW_PORT
export URL=$URL
update_config() {

View File

@ -5,11 +5,11 @@ services:
build:
context: ${PWD}
args:
BLOG_NAME: ${BLOG_NAME}
BLOG_NAME: ${BLOG_NAME:-blog}
env_file: ${PWD}/data/.env
ports:
- ${LIVERELOAD_PORT}:10000
- ${WWW_PORT}:4000
- ${LIVERELOAD_PORT:-10000}:10000
- ${WWW_PORT:-4000}:4000
volumes:
- ${PWD}/jekyll:/app/jekyll
- ${PWD}/data:/opt/jekyll