about summary refs log tree commit diff
path: root/deploy.sh
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-05-04 20:34:16 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-05-04 20:34:16 +0200
commit383f7b633471dedf515907cb8a8752bc5885ae64 (patch)
tree793225216c9c38be1533e1960166b7b3dd472890 /deploy.sh
parentDark theme, fancier room list (diff)
downloadMatrixUtils-383f7b633471dedf515907cb8a8752bc5885ae64.tar.xz
Add room manager, profile caching
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 853dee8..59d62c5 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,4 +1,10 @@
 #!/bin/sh
+BASE_DIR=`pwd`
+rm -rf **/bin/Release
 cd MatrixRoomUtils.Web
 dotnet publish -c Release
 rsync -raP bin/Release/net7.0/publish/wwwroot/ rory.gay:/data/nginx/html_mru/
+cd bin/Release/net7.0/publish/wwwroot
+tar cf - ./ | xz -z -9 - > $BASE_DIR/MRU.tar.xz
+rsync -raP $BASE_DIR/MRU.tar.xz rory.gay:/data/nginx/html_mru/MRU.tar.xz
+rm -rf $BASE_DIR/MRU.tar.xz