mirror of
https://github.com/Xevion/v2.xevion.dev.git
synced 2025-12-06 07:16:49 -06:00
Update serve scripts for windows/linux
This commit is contained in:
13
serve.sh
Normal file
13
serve.sh
Normal 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
|
||||
Reference in New Issue
Block a user