Verified Commit 58e6dd5b authored by Aral Balkan's avatar Aral Balkan
Browse files

Use Indie Web Server as a reverse proxy in the local script

parent 77817ce8
......@@ -11,4 +11,11 @@
# as localhost:<port> regardless of the setting of baseURL in the config.toml
# file. Since we do not have a separate build/deploy phase to the live server,
# we want the site as it would exist on the server to exist on the client.
hugo server --buildDrafts --renderToDisk --baseURL=https://ind.ie --appendPort=false
hugo server --buildDrafts --renderToDisk --baseURL=https://ind.ie --appendPort=false &
HUGO_SERVER_PID=$!
# Use Indie Web Server as a reverse proxy to serve the site at https://localhost
web-server http://localhost:1313
# Clean up: kill the Hugo server before exiting.
kill $HUGO_SERVER_PID
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