Add local and deploy scripts

(Note: deploy will not work until the site is set up at small-tech.org)
parent ec2a9391
Pipeline #849 canceled with stages
#!/bin/bash
# Build the site.
hugo --baseURL=https://small-tech.org --destination=../build
# Deploy it.
# TODO: Update this to use Site.js
web-server sync ../build small-tech.org --exit-on-sync
#!/bin/bash
# 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=https://small-tech.org --appendPort=false &
HUGO_SERVER_PID=$!
# 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.
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