From 19770a2a3cae0df2b3400d4f0e1e2c59873aa41f Mon Sep 17 00:00:00 2001 From: Andreas Weyer Date: Sat, 29 Nov 2025 18:10:08 +0000 Subject: [PATCH] Add build and deploy scripts --- scripts/build-and-deploy.ps1 | 4 ++++ scripts/deploy.ps1 | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 scripts/build-and-deploy.ps1 create mode 100644 scripts/deploy.ps1 diff --git a/scripts/build-and-deploy.ps1 b/scripts/build-and-deploy.ps1 new file mode 100644 index 0000000..d978c16 --- /dev/null +++ b/scripts/build-and-deploy.ps1 @@ -0,0 +1,4 @@ +Set-Location (Join-Path $PSScriptRoot "..\") + +& npm run build ` + && .\scripts\deploy.ps1 diff --git a/scripts/deploy.ps1 b/scripts/deploy.ps1 new file mode 100644 index 0000000..ae6c476 --- /dev/null +++ b/scripts/deploy.ps1 @@ -0,0 +1,19 @@ +# $remoteUser = "username" +$remoteHost = "11001001.org" +# $remotePort = 22 +$remoteDir = "/var/www/med-plan-assistant" +$localBuild = Join-Path $PSScriptRoot "..\build" + +# Using pscp (PuTTY) with Pageant: +# & "C:\Program Files\PuTTY\pscp.exe" -r -P $remotePort $localBuild\* ` +# "$remoteUser@${remoteHost}:$remoteDir" + +# Example SSH config entry: +# Host my.server +# HostName my.server +# User username +# Port 22 + +# Using pscp (PuTTY) with Pageant and ssh config: +& "C:\Program Files\PuTTY\pscp.exe" -r $localBuild\* ` + "${remoteHost}:$remoteDir"