public static async Task <string> UpdatePostDeployAppSettings(Site site) { SimpleTrace.TraceInformation($"Site AppSettings Update started: for {site.SiteName}->{site.ResourceGroupName}->{site.SubscriptionId}"); await site.LoadAppSettings(); site.AppSettings["SITE_GIT_URL"] = site.GitUrlWithCreds; site.AppSettings["SITE_BASH_GIT_URL"] = site.BashGitUrlWithCreds; var siteguid = Guid.NewGuid().ToString(); site.AppSettings["SITE_SITEKEY"] = siteguid; await site.UpdateAppSettings(); return(siteguid); }
public static async Task UpdateVSCodeLinuxAppSettings(Site site) { SimpleTrace.TraceInformation($"Site AppSettings Update started: for {site.SiteName}->{site.ResourceGroupName}->{site.SubscriptionId}"); site.AppSettings["SITE_GIT_URL"] = site.GitUrlWithCreds; site.AppSettings["SITE_BASH_GIT_URL"] = site.BashGitUrlWithCreds; await Task.WhenAll(site.UpdateConfig( new { properties = new { appCommandLine = "process.json", linuxFxVersion = "NODE|9.4", alwaysOn = true, httpLoggingEnabled = true } }), site.UpdateAppSettings()); }