diff options
author | Rory& <root@rory.gay> | 2024-01-24 12:08:36 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-01-24 12:08:36 +0100 |
commit | ebb775340a8198247113b9a3374cfda159a9fe3c (patch) | |
tree | 36ec2b971004d5a3bf9df7605d064554f22b3ea0 /scripts/deploy.sh | |
parent | LibMatrix update, refactor login page, add web manifest (diff) | |
download | MatrixUtils-ebb775340a8198247113b9a3374cfda159a9fe3c.tar.xz |
Minor cleanup of file tree
Diffstat (limited to 'scripts/deploy.sh')
-rwxr-xr-x | scripts/deploy.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 0000000..df79ace --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,24 @@ +#!/bin/sh +if [[ -z $(git status -s) ]] +then + echo "tree is clean" +else + echo "tree is dirty, please commit changes before running this" +# exit +fi + +BASE_DIR=`pwd` +rm -rf **/bin/Release +cd MatrixRoomUtils.Web +dotnet publish -c Release +rsync -raP bin/Release/net8.0/publish/wwwroot/ rory.gay:/data/nginx/html_mru/ +cd bin/Release/net8.0/publish/wwwroot +tar cf - ./ | xz -z -9 - > $BASE_DIR/MRU-BIN.tar.xz +#rsync -raP $BASE_DIR/MRU-BIN.tar.xz rory.gay:/data/nginx/html_mru/MRU-BIN.tar.xz +rm -rf $BASE_DIR/MRU-BIN.tar.xz +cd $BASE_DIR +git clone .git -b `git branch --show-current` src --recursive +rm -rf src/.git +tar cf - src/ | xz -z -9 - > MRU-SRC.tar.xz +rsync -raP $BASE_DIR/MRU-SRC.tar.xz rory.gay:/data/nginx/html_mru/MRU-SRC.tar.xz +rm -rf src/ |