azure-deployment-slots

Angular 2 configuration issues with Azure Slot deployments

£可爱£侵袭症+ 提交于 2019-12-04 05:35:45
问题 I'm having a problem with Angular environment variables and Azure Slots We want to use an app service providing static Angular files and we also want to use Azure slots to make our deployments safer. The reasons we want to use slots are: Ensure that code works in the production environment before making it fully available to everyone Reduce downtime to almost nil as there is no build being deployed during the "go-live" phase Our Angular site only serving up static files means that slot

Deployment slot specific appsettin in ARM template?

情到浓时终转凉″ 提交于 2019-12-04 05:12:21
I'm trying to get into that Visual Studio Resource Group template. So far it's looking good, and I have added some appsettings for a web app, but my question is, how can I make them deployment slot specific? Is there something in the json for the template or the parameter file? Tom Sun - MSFT Please have a try to add the json code snipped in the ARM template. I have tested it. It works successfully. "resources": [ { "apiVersion": "2015-08-01", "name": "appsettings", "type": "config", "dependsOn": [ "[resourceId('Microsoft.Web/Sites/Slots', variables('webSiteName'), 'Staging')]" ], "properties"

Angular 2 configuration issues with Azure Slot deployments

自闭症网瘾萝莉.ら 提交于 2019-12-02 09:55:31
I'm having a problem with Angular environment variables and Azure Slots We want to use an app service providing static Angular files and we also want to use Azure slots to make our deployments safer. The reasons we want to use slots are: Ensure that code works in the production environment before making it fully available to everyone Reduce downtime to almost nil as there is no build being deployed during the "go-live" phase Our Angular site only serving up static files means that slot deployments require a different build to populate the env.json environment settings differently for each slot

angular 2 app on azure read app settings

匆匆过客 提交于 2019-12-01 08:48:06
I want to deploy an angular 2 app to different web app slots (let's say dev, staging and prod) using VSTS CI/CD. Each slot should point to a different web api. Normally one would specify three different environment files inside the app, but the downside is that I would have to build three times with different environments. What I want to achieve is to have only two builds, dev and prod. The dev get's deployed to the dev slot and the prod build get's deployed to staging first and then the same build should be deployed to the production slot. I can define app settings for each slot. They are

Publishing web app to Azure Websites Staging deployment slot fails with webjob

爱⌒轻易说出口 提交于 2019-12-01 07:16:52
I just created a new deployment slot for my app, imported the publishing profile to Visual Studio, but after deployment I get this error message: Error 8: An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [myapp__staging] and WebSiteUrl [ http://myapp-staging.azurewebsites.net] supplied. I have 2 webjobs, a continuous and a scheduled webjob. I already signed in to the correct Azure account, as stated by this answer . Will I need to set something else up in order to deploy my app to a staging Deployment Slot with webjobs? My app is

angular 2 app on azure read app settings

自闭症网瘾萝莉.ら 提交于 2019-12-01 07:10:19
问题 I want to deploy an angular 2 app to different web app slots (let's say dev, staging and prod) using VSTS CI/CD. Each slot should point to a different web api. Normally one would specify three different environment files inside the app, but the downside is that I would have to build three times with different environments. What I want to achieve is to have only two builds, dev and prod. The dev get's deployed to the dev slot and the prod build get's deployed to staging first and then the same

Publishing web app to Azure Websites Staging deployment slot fails with webjob

拜拜、爱过 提交于 2019-12-01 05:32:30
问题 I just created a new deployment slot for my app, imported the publishing profile to Visual Studio, but after deployment I get this error message: Error 8: An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [myapp__staging] and WebSiteUrl [http://myapp-staging.azurewebsites.net] supplied. I have 2 webjobs, a continuous and a scheduled webjob. I already signed in to the correct Azure account, as stated by this answer. Will I need to set