From 0e1c4eaee934c9a7e510a99dfb21b1d002d46d41 Mon Sep 17 00:00:00 2001 From: pablo Date: Sun, 14 Nov 2021 17:53:34 +0100 Subject: [PATCH] Added small utility to copy the site from the jekyll build folder to the nginx folder. --- nginx/copy_public_jekyll_to_nginx.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nginx/copy_public_jekyll_to_nginx.sh diff --git a/nginx/copy_public_jekyll_to_nginx.sh b/nginx/copy_public_jekyll_to_nginx.sh new file mode 100644 index 0000000..aae28df --- /dev/null +++ b/nginx/copy_public_jekyll_to_nginx.sh @@ -0,0 +1,11 @@ +#!/bin/bash + + +JEKYLL_SITE_LOCATION=/home/pablo/counterweight/_site +NGINX_SITE_LOCATION=/home/pablo/counterweight_nginx/site + +echo "Copying from $JEKYLL_SITE_LOCATION to $NGINX_SITE_LOCATION" + +cp -a $JEKYLL_SITE_LOCATION/. $NGINX_SITE_LOCATION + +echo "Done!"