Skip to content

Commit

Permalink
Update HugoStart.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandgrandRealMe authored Feb 22, 2024
1 parent f59b366 commit 2811955
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/how-to/DBH/quickstarts/HugoStart.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
if [ "$#" -ne 2 ]; then
if [ "$#" -ne 3 ]; then
# Print an error message to standard error
echo "Usage: $0 port folder" >&2
echo "Usage: $0 port folder url" >&2
# Exit with a non-zero status code
exit 1
fi

port=$1
folder=$2
url=$3

cd $folder

../hugo server --bind 0.0.0.0 --port $port
../hugo server --bind 0.0.0.0 --port $port --baseURL $url

0 comments on commit 2811955

Please sign in to comment.