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"