Add build and deploy scripts
This commit is contained in:
4
scripts/build-and-deploy.ps1
Normal file
4
scripts/build-and-deploy.ps1
Normal file
@@ -0,0 +1,4 @@
|
||||
Set-Location (Join-Path $PSScriptRoot "..\")
|
||||
|
||||
& npm run build `
|
||||
&& .\scripts\deploy.ps1
|
||||
19
scripts/deploy.ps1
Normal file
19
scripts/deploy.ps1
Normal 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"
|
||||
Reference in New Issue
Block a user