about summary refs log tree commit diff
path: root/scripts/deploy-local.sh
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-01-24 12:08:36 +0100
committerRory& <root@rory.gay>2024-01-24 12:08:36 +0100
commitebb775340a8198247113b9a3374cfda159a9fe3c (patch)
tree36ec2b971004d5a3bf9df7605d064554f22b3ea0 /scripts/deploy-local.sh
parentLibMatrix update, refactor login page, add web manifest (diff)
downloadMatrixUtils-ebb775340a8198247113b9a3374cfda159a9fe3c.tar.xz
Minor cleanup of file tree
Diffstat (limited to 'scripts/deploy-local.sh')
-rwxr-xr-xscripts/deploy-local.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/deploy-local.sh b/scripts/deploy-local.sh
new file mode 100755

index 0000000..a030a21 --- /dev/null +++ b/scripts/deploy-local.sh
@@ -0,0 +1,15 @@ +#!/bin/sh + +ssh 192.168.0.13 "bash -xc 'sudo rm -rf /tmp/mru-build'" +ssh 192.168.0.13 "bash -xc 'sudo mkdir /tmp/mru-build'" +ssh 192.168.0.13 "bash -xc 'sudo chown \`basename \$PWD\`: /tmp/mru-build'" +rsync -raP ./ 192.168.0.13:/tmp/mru-build +ssh 192.168.0.13 "sh -c 'cd /tmp/mru-build/MatrixRoomUtils.Web; dotnet clean --r -v:n'" +#ssh 192.168.0.13 "sh -c 'cd /tmp/mru-build/MatrixRoomUtils.Web; dotnet build -c Release'" +ssh 192.168.0.13 "sh -c 'cd /tmp/mru-build/MatrixRoomUtils.Web; dotnet publish -c Release'" +rsync -raP 192.168.0.13:/tmp/mru-build/MatrixRoomUtils.Web/bin/Release/net8.0/publish/wwwroot/ /tmp/mru-wwwroot --delete +rsync -raP /tmp/mru-wwwroot/ rory.gay:/data/nginx/html_mru --delete +ssh rory.gay chmod o+r /data/nginx/html_mru -Rc +ssh rory.gay sudo find /data/nginx/html_mru -type d -exec chmod o+rx {} + + +echo "-- End of script! --"