【问题标题】:my Azure changes are not getting published onto my website我的 Azure 更改未发布到我的网站上
【发布时间】:2018-02-16 04:21:24
【问题描述】:

我正在按照 microsoft 文档使用 sql 数据库在 azure 上部署我的应用程序 我在 appsettings.Json 中对我的连接字符串进行了轻微更改 并做了一个 git add 。 然后 git 提交。然后我做了 git push azure master。 但是,当我导航到我的网站时,更改并未反映出来。 我之前进行过更改,它们立即得到反映。

【问题讨论】:

  • 您知道可以更改应用程序设置,例如 azure 门户中的连接字符串吗?
  • @MartinBrandl 不,我不知道。
  • @martin BrandI 很高兴知道但并没有真正回答这个问题。
  • 这里是链接:docs.microsoft.com/en-us/azure/app-service/web-sites-configure。抱歉,不知道为什么没有反映这些更改
  • 是因为一个案例问题,您将同时拥有 appsettings.Jsonappsettings.json

标签: git azure asp.net-core azure-web-app-service


【解决方案1】:

在您的情况下,您可以使用 Kudu 工具 (https://{yoursiteName}.scm.azurewebsites.net/) 检查 appsetting.json 是否已更改。但是,如果您在 Azure 应用设置中添加了连接字符串。 Azure 网站将使用 Azure 门户中显示的值自动更新连接字符串在运行时。更多详情请参考Application Strings and Connection Strings Work

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-09
    • 1970-01-01
    • 1970-01-01
    • 2015-11-02
    • 1970-01-01
    相关资源
    最近更新 更多