diff --git a/Launch.ps1 b/Serve.ps1 similarity index 100% rename from Launch.ps1 rename to Serve.ps1 diff --git a/serve.sh b/serve.sh new file mode 100644 index 0000000..3be5125 --- /dev/null +++ b/serve.sh @@ -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 \ No newline at end of file