Add make site target to build & publish the website

This of course needs SSH access to the flamenco.io website.

Run `hugo --serve` from the `web/flamenco-io-site` directory to simply
run an in-memory copy of the site, and browse it locally at
http://localhost:1313/
This commit is contained in:
Sybren A. Stüvel 2022-07-05 16:17:25 +02:00
parent eb54d1ab41
commit 9939e43b63
3 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -24,4 +24,5 @@ __pycache__
web/manager-api/dist/ web/manager-api/dist/
web/static/ web/static/
web/flamenco-io-site/public/
/dist/ /dist/

View File

@ -162,6 +162,15 @@ clean-webapp-static:
mkdir -p ./${WEB_STATIC} mkdir -p ./${WEB_STATIC}
touch ${WEB_STATIC}/emptyfile touch ${WEB_STATIC}/emptyfile
site:
rm -rf web/flamenco-io-site/public/
cd web/flamenco-io-site; hugo --baseURL https://www.flamenco.io/
rsync web/flamenco-io-site/public/ flamenco.io:flamenco.io/ \
-va \
--exclude v2/ \
--exclude .well-known/ \
--exclude .htaccess \
--delete-after
package: flamenco-manager flamenco-worker addon-packer package: flamenco-manager flamenco-worker addon-packer
rm -rf dist-build rm -rf dist-build

View File

@ -1,4 +1,4 @@
baseURL = "http://flamenco.io" baseURL = "http://localhost:1313"
title = "Flamenco" title = "Flamenco"
theme = "hugo-geekdoc" theme = "hugo-geekdoc"