From 98e89232ff50b9c48a11fcae27869806490b1187 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 7 Dec 2023 07:27:37 +0100 Subject: Temp state --- deploy-local.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 deploy-local.sh (limited to 'deploy-local.sh') diff --git a/deploy-local.sh b/deploy-local.sh new file mode 100755 index 0000000..a030a21 --- /dev/null +++ b/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! --" -- cgit 1.4.1