Update serve scripts for windows/linux

This commit is contained in:
2023-09-19 11:03:47 -05:00
parent 31a4ae46f1
commit ed4db55977
2 changed files with 13 additions and 0 deletions

View File

13
serve.sh Normal file
View File

@@ -0,0 +1,13 @@
# default to development|dev
ENVIRONMENT="${1:-development}"
if [ "$ENVIRONMENT" = "production" ]; then
echo "Building for production"
bundle exec jekyll build --config _config.yml -t
exit
elif [ "$ENVIRONMENT" = "development" ]; then
echo "Building for development"
bundle exec jekyll serve --config _config.yml,_config_dev.yml -l -t # Live reload & debug trace
else
printf "Invalid argument: %s\nValid arguments: dev[elopment]|prod[uction]" "$ENVIRONMENT"
exit
fi