From 0116646dd9423e97f6b877723657f350382eca88 Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Mon, 10 Aug 2020 01:59:48 -0500 Subject: [PATCH] Add script to deploy the generated html archive to a server. --- README.md | 3 ++- deploy_archives | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 deploy_archives diff --git a/README.md b/README.md index 6dc3deb..89ed458 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ This repository contains the tickets, scripts, and documentation for the end of `pip install -e .` ## Standalone Epilogue Scripts -Run these before running commands from the epilogue package. +#### `deploy_archives` +Run this once the archives have been built to tar them up and scp them to the server. #### Wiki Data ##### `find_data` diff --git a/deploy_archives b/deploy_archives new file mode 100755 index 0000000..b3b54b4 --- /dev/null +++ b/deploy_archives @@ -0,0 +1,8 @@ +#!/bin/sh +HOSTNAME=glitchcity.info +ARCHIVE_PATH=/var/www/html/gclarchives + +cd archives +tar -cvf forums.tar forums +scp forums.tar $HOSTNAME:$ARCHIVE_PATH +ssh $HOSTNAME "cd $ARCHIVE_PATH; tar -xvf forums.tar" \ No newline at end of file