Skip to content

Commit f91b8e4

Browse files
authored
Merge pull request #68 from wviriya/refresh-functions-v4
Fix MSAL errors after upgrade. Change from idToken to idTokenClaims
2 parents 429912e + ac59632 commit f91b8e4

File tree

5 files changed

+675
-423
lines changed

5 files changed

+675
-423
lines changed

scripts/run-local.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# NOTE: Install latest versions of Node and NPM: https://nodejs.org/en/download/
22
# NOTE: Install latest version of func CLI: https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local
3+
# NOTE: Start Azure Storage Emulator https://docs.microsoft.com/en-us/azure/storage/common/storage-use-emulator
34

45
$ErrorActionPreference = 'Stop'
56

@@ -11,23 +12,23 @@ try {
1112
Start-Process pwsh { -c cd ../web/serverless-microservices-web && npm install && copy ../../test/settings.example.js ./public/js/settings.js && npm run serve -- --port 4280 }
1213

1314
# Build and start Trip Archiver Nodejs Function
14-
Start-Process pwsh { -c cd ../nodejs/serverless-microservices-functionapp-triparchiver && npm install && npm run pack && func start --javascript -p 7075 }
15+
Start-Process pwsh { -c cd ../nodejs/serverless-microservices-functionapp-triparchiver && npm install && npm run pack && func start --javascript -p 7075 --cors http://localhost:4280 }
1516

1617
# Start each Function in a new console. Give each one a head start to avoid collisions building shared DLLs
1718
# Build and start Drivers Function
18-
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Drivers && func start --csharp -p 7071 }
19+
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Drivers && func start --csharp -p 7071 --cors http://localhost:4280 }
1920

2021
Start-Sleep -Seconds 2
2122
# Build and start Trips Function
22-
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Trips && func start --csharp -p 7072 }
23+
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Trips && func start --csharp -p 7072 --cors http://localhost:4280 }
2324

2425
Start-Sleep -Seconds 2
2526
# Build and start Passengers Function
26-
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Passengers && func start --csharp -p 7073 }
27+
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Passengers && func start --csharp -p 7073 --cors http://localhost:4280 }
2728

2829
Start-Sleep -Seconds 2
2930
# Build and start Orchestrators Function
30-
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start --csharp -p 7074 }
31+
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start --csharp -p 7074 --cors http://localhost:4280 }
3132

3233
Start-Sleep -Seconds 90
3334
# Open the browser

0 commit comments

Comments
 (0)