Simplify run script.
This commit is contained in:
11
run.sh
11
run.sh
@@ -3,11 +3,8 @@
|
|||||||
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
rm -rfv public
|
# Create Production Files
|
||||||
mkdir -pv public
|
hugo --gc --minify
|
||||||
|
|
||||||
if [[ ! -f static/style.css ]]; then
|
# Run Development Environment (includes drafts)
|
||||||
cp -rv themes/lugo/static/style.css static/
|
hugo server -D --noBuildLock --bind=0.0.0.0
|
||||||
fi
|
|
||||||
|
|
||||||
hugo server -D --noBuildLock
|
|
||||||
|
Reference in New Issue
Block a user