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

Update all scripts to use Site.js

parent 0b21a379
.DS_Store .DS_Store
*.*~ *.*~
\ No newline at end of file dist/
baseURL = "https://ar.al/" baseURL = "https://ar.al/"
languageCode = "en-us" languageCode = "en-us"
title = "Aral Balkan" title = "Aral Balkan"
publishDir = "../live" publishDir = "./dist/site"
PygmentsCodeFences = true PygmentsCodeFences = true
PygmentsStyle = "friendly" PygmentsStyle = "friendly"
enableGitInfo = true enableGitInfo = true
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
# #
# ar.al single-shot deployment script. # ar.al single-shot deployment script.
# #
# Uses Hugo (gohugo.io) and Indie Web Server (ind.ie/web-server). # Uses Hugo (gohugo.io) and Site.js (https://sitejs.org).
# #
################################################################################ ################################################################################
# Build the site # Build the site
hugo --baseURL=https://ar.al --destination=../build # (The destination is a subdirectory of the dist folder because we also have
# a site archive that we want to deploy and the easie)
hugo --baseURL=https://ar.al
# Deploy it # Deploy it
web-server sync ../build/ ar.al --account=ubuntu --folder=site --exit-on-sync site dist --sync-to=ar.al --exit-on-sync
#!/bin/bash #!/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 Indie Web Server to proxy the Hugo server to https://localhost
web-server proxy localhost:1313 &
# Start Hugo server. # Start Hugo server.
# #
# The baseURL and appendPort flags are set to overwrite the default behaviour # The baseURL and appendPort flags are set to overwrite the default behaviour
...@@ -14,4 +7,11 @@ web-server proxy localhost:1313 & ...@@ -14,4 +7,11 @@ web-server proxy localhost:1313 &
# as localhost:<port> regardless of the setting of baseURL in the config.toml # 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, # 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. # we want the site as it would exist on the server to exist on the client.
hugo server --buildDrafts --renderToDisk --baseURL=https://ar.al --appendPort=false hugo server --buildDrafts --renderToDisk --baseURL=https://ar.al --appendPort=false &
# 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 Indie Web Server to proxy the Hugo server to https://localhost
site :1313
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
trap "exit" INT TERM ERR trap "exit" INT TERM ERR
trap "kill 0" EXIT trap "kill 0" EXIT
# Start Indie Web Server in the backgroun to sync the live folder to my site # Start Site.js 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. # 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 & site :1313 --sync-to=ar.al &
# Start Hugo server. # Start Hugo server.
# #
......
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