Skip to content

Commit d98c5da

Browse files
dont need http-server
1 parent 81f920f commit d98c5da

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/run-local.ps1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33

44
$ErrorActionPreference = 'Stop'
55

6-
try {
7-
# Install lightweight HTTP server for local hosting of SPA
8-
npm install http-server -g
9-
6+
try {
107
# cd /dotnet
118
Push-Location ( Join-Path $PSScriptRoot ../dotnet ) -StackName scripts
129

1310
# Build and host SPA at http://127.0.0.1:8080/
14-
Start-Process pwsh { -c cd ../web/serverless-microservices-web && npm install && npm run build && copy ../../test/settings.example.js dist/js/settings.js && cd dist && http-server }
11+
Start-Process pwsh { -c cd ../web/serverless-microservices-web && npm install && copy ../../test/settings.example.js web/js/settings.js && npm run serve }
1512

1613
# Build and start Trip Archiver Nodejs Function
1714
Start-Process pwsh { -c cd ../nodejs/serverless-microservices-functionapp-triparchiver && npm install && npm run pack && func start --javascript -p 7075 }

0 commit comments

Comments
 (0)