Disable live reload in live script

parent 7e1f15f8
......@@ -6,7 +6,12 @@
trap "exit" INT TERM ERR
trap "kill 0" EXIT
# Start Hugo server in the background.
# Start Indie Web Server in the background to both proxy Hugo from port 1313
# to https://localhost for development and to sync any changes to the live
# directory to the server.
web-server sync ../live/ --to=aral@static.ind.ie:/var/www --proxy=localhost:1313 &
# Start Hugo server
#
# The baseURL and appendPort flags are set to overwrite the default behaviour
# of Hugo when run with the server option which is to write absolute URLs
......@@ -17,12 +22,7 @@ trap "kill 0" EXIT
# Note: if you do not want a post live-synced, mark it as draft: true in the
# ===== front matter.
#
hugo server --renderToDisk --baseURL=https://ind.ie --appendPort=false &
# Start Indie Web Server to both proxy Hugo from port 1313 to https://localhost
# for development (with live reload support) and to sync any changes to the
# live directory to the server.
web-server sync ../live/ --to=aral@static.ind.ie:/var/www --proxy=localhost:1313
hugo server --renderToDisk --baseURL=https://ind.ie --appendPort=false --disableLiveReload=true
# Don’t exit. Shutting off this process should also kill
# the two other background processes we started
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment