Add build and deploy scripts

This commit is contained in:
2025-11-29 18:10:08 +00:00
parent 239e0e64da
commit 19770a2a3c
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
Set-Location (Join-Path $PSScriptRoot "..\")
& npm run build `
&& .\scripts\deploy.ps1

19
scripts/deploy.ps1 Normal file
View File

@@ -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"