Note: Deploying an application using Visual Studio Code is a nice feature to quickly test things on Azure. Since the name of my app is demoapp, the folder I am looking for is dist/demoapp.įinally, click the Deploy button to deploy your app: After a few seconds, the deployment should succeed and you will be able to browse your application: This will open the Visual Studio Command Prompt where you choose “ Browse…“: Now navigate to the dist/ folder which contains the output from the previous ng build command. Now open the Azure code extension, click on App Service, expand the subscription where your resources are located and right click on the desired App Service and choose “ Deploy to Web App …“: NET based runtime instead of Node.Js, you just have to omit the startup command in the above script and change the runtime to DOTNET|6.0: The same applies to the startup command ( pm2 serve /home/site/wwwroot -no-daemon -spa) which you can add in the General settings section within the Configuration: Configuration for a. If you already have an existing App Service, you can add the setting in the Configuration page within the portal: $frontendApp = 'on-behalf-of-frontend-web'Īz group create -name $rg -location $locationĪz appservice plan create -name $appServicePlan -resource-group $rg -sku S1 -is-linuxĪz webapp create -resource-group $rg -plan $appServiceplan -name $frontendApp -runtime '"NODE|14-lts"' -startup-file "pm2 serve /home/site/wwwroot -no-daemon -spa"Īz webapp config appsettings set -resource-group $rg -name $frontendApp -settings SCM_DO_BUILD_DURING_DEPLOYMENT=FALSE
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |