Verified Commit b69f0fcd authored by Aral Balkan's avatar Aral Balkan
Browse files

Add local and deploy scripts

(Note: deploy will not work until the site is set up at
parent ec2a9391
Pipeline #849 canceled with stages
# Build the site.
hugo --baseURL= --destination=../build
# Deploy it.
# TODO: Update this to use Site.js
web-server sync ../build --exit-on-sync
# Runs just Hugo server for local authoring
# (changes will not be deployed or live streamed over the
# peer-to-peer web. For that, use the ./live script.)
# 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
# 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= --appendPort=false &
# Use Indie Web Server as a reverse proxy to serve the site at https://localhost
# TODO: Update this to use Site.js.
web-server proxy localhost:1313
# Clean up: kill the Hugo server before exiting.
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