about summary refs log tree commit diff
path: root/deploy.sh
blob: 59d62c598bd70bcaa44be6cc8cebb449d6487e18 (plain) (blame)
1
2
3
4
5
6
7
8
9
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