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