Add script to deploy the generated html archive to a server.

This commit is contained in:
Adrian Kuschelyagi Malacoda 2020-08-10 01:59:48 -05:00
parent f3b0319d5a
commit 0116646dd9
2 changed files with 10 additions and 1 deletions

View File

@ -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`

8
deploy_archives Executable file
View File

@ -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"