Add way to customize host and port for build-and-serve.sh (#846)

This commit is contained in:
Adam Scott
2024-05-13 11:08:45 -04:00
committed by GitHub
parent d14f15e5c9
commit 09c7ac5775

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
SERVER_HOST="${SERVER_HOST:-0.0.0.0}"
SERVER_PORT="${SERVER_PORT:-4000}"
bundle install
bundle exec jekyll serve --config _config.yml,_config.development.yml --host 0.0.0.0
bundle exec jekyll serve --config _config.yml,_config.development.yml --host "$SERVER_HOST" --port "$SERVER_PORT"