Add the creation of future articles on DEV hugo systems.
This commit is contained in:
@@ -69,7 +69,7 @@ if [[ "$DEV" == "Y"* || "$DEV" == "T"* ]]; then
|
|||||||
echo "* Dev server not detected, starting..."
|
echo "* Dev server not detected, starting..."
|
||||||
cd $SITE
|
cd $SITE
|
||||||
killall hugo 2>/dev/null
|
killall hugo 2>/dev/null
|
||||||
sudo -u www-data hugo server -D --noBuildLock --bind 0.0.0.0 -p 1380 &
|
sudo -u www-data hugo server -D -F --noBuildLock --bind 0.0.0.0 -p 1380 &
|
||||||
fi
|
fi
|
||||||
sleep 30
|
sleep 30
|
||||||
done &
|
done &
|
||||||
@@ -90,3 +90,13 @@ echo "*** Finished $0 @ `date` ***"
|
|||||||
wait -n
|
wait -n
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
ww-data
|
||||||
|
tail -f mail www-data &
|
||||||
|
|
||||||
|
cd
|
||||||
|
|
||||||
|
echo "*** Finished $0 @ `date` ***"
|
||||||
|
|
||||||
|
wait -n
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|||||||
Reference in New Issue
Block a user