@@ -29,27 +29,32 @@ In real world scenarios you can replace the web server and the blob storage with
2929 az signalr create --resource-group <resource_group_name> --name <signalr_name> --sku Standard_S1
3030 ```
3131
32- 1. Create a web app using [ Azure CLI].
32+ 1. Create a web app using Azure CLI:
3333
3434 ```
3535 az appservice plan create --name <plan_name> --resource-group <resource_group_name> --sku S1 --is-linux
3636 az webapp create \
3737 --resource-group <resource_group_name> --plan <plan_name> --name <app_name> \
38- --runtime "dotnetcore|2 .1"
38+ --runtime "dotnetcore|3 .1"
3939 ```
4040
41411. Deploy flight map to web app:
4242
43- ```
44- az webapp deployment source config-local-git --resource-group <resource_group_name> --name <app_name>
45- az webapp deployment user set --user-name <user_name> --password <password>
46-
47- git init
48- git remote add origin <deploy_git_url>
49- git add -A
50- git commit -m "init commit"
51- git push origin master
52- ```
43+ a. Publish the app
44+ ```
45+ dotnet publish -c Release
46+ ```
47+
48+ b. Package the published app into a zip file (or use whatever zip tool you like to do it)
49+ ```
50+ cd bin/Release/netcoreapp3.1/publish
51+ zip app.zip * -r
52+ ```
53+
54+ c. Publish using Azure CLI
55+ ```
56+ az webapp deployment source config-zip -n <app_name> -g <resource_group_name> --src app.zip
57+ ```
5358
54591. Prepare flight data
5560
@@ -80,7 +85,6 @@ In real world scenarios you can replace the web server and the blob storage with
80851. Update settings of web app:
8186
8287 ```
83- az webapp config appsettings set --resource-group <resource_group_name> --name <app_name> --setting PORT=5000
8488 az webapp config appsettings set --resource-group <resource_group_name> --name <app_name> \
8589 --setting Azure__SignalR__ConnectionString=<connection_string>
8690 az webapp config appsettings set --resource-group <resource_group_name> --name <app_name> \
0 commit comments