Ind.ie is now Small Technology Foundation.
Commit 9e275fe6 authored by Aral Balkan's avatar Aral Balkan

Run Indie Web Server in the background in the live script

parent 7b7c39f0
......@@ -14,7 +14,11 @@
trap "exit" INT TERM ERR
trap "kill 0" EXIT
# Start Hugo server in the background.
# Start Indie Web Server in the backgroun to sync the live folder to my site
# and also proxy hugo server to https://localhost for local development with live reload.
web-server sync ../live/ ar.al --account=ubuntu --folder=site --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
......@@ -25,11 +29,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://ar.al --appendPort=false &
# Start Indie Web Server to sync the live folder to my site and also proxy
# hugo server to https://localhost for local development with live reload.
web-server sync ../live/ ar.al --account=ubuntu --folder=site --proxy=localhost:1313
hugo server --renderToDisk --baseURL=https://ar.al --appendPort=false
# 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