From 6149e50baadd60bb86cd53e00bd7e9dede5b9698 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Tue, 13 Aug 2024 00:52:04 +0200 Subject: [PATCH] Add a push script for the Media, sync it between site and Squanchy --- static/media/README.md | 2 ++ static/media/push.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100755 static/media/push.sh diff --git a/static/media/README.md b/static/media/README.md index c8d5cca..7b93498 100644 --- a/static/media/README.md +++ b/static/media/README.md @@ -10,3 +10,5 @@ Note: the production environment does not allow resources to be loaded outside of the domain itself for security reasons, but `hugo serve` is not as strict. + +Push the files first to Squanchy (using ./push.sh) and from there to the NGNIX servers. diff --git a/static/media/push.sh b/static/media/push.sh new file mode 100755 index 0000000..74b4d3d --- /dev/null +++ b/static/media/push.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +rsync -avugP vdo/ squanchy.ipng.ch:src/media.ipng.ch/sabbatical/media/vdo/