[英]Update Umbraco to the latest version on Azure App Service
A client of mine would like to use Umbraco. 我的一个客户想使用Umbraco。 Just because we always use Azure, we decided to use the following ARM template (and, for example, not move on Umbraco Cloud).
仅仅因为我们始终使用Azure,我们决定使用以下ARM模板 (例如,不要在Umbraco Cloud上移动)。 My questions are:
我的问题是:
thanks 谢谢
Be careful with the sync button, it do a KuduSync.NET with the repo, the Web.config will be overwritten and some other files, Your Umbraco database connection string is lost and Umbraco comes in the install mode. 请注意同步按钮,它会使用存储库执行KuduSync.NET,Web.config将被覆盖,并添加其他文件,您的Umbraco数据库连接字符串将丢失,Umbraco进入安装模式。
KuduSync.NET is a Tool for syncing files for deployment, will only copy changed files and delete files that doesn't exists in the destination but only if they were part of the previous deployment (manifest file). KuduSync.NET是用于同步文件以进行部署的工具,它将仅复制更改的文件并删除目标中不存在的文件,但前提是这些文件是先前部署的一部分(清单文件)。
So for example your upload media files will not be destroyed. 因此,例如,您的上传媒体文件不会被破坏。
For upgrading see the Umbraco Upgrades in general first read if there are special instructions for your version. 如果要升级,请先阅读Umbraco升级,如果您的版本有特殊说明,请先阅读。 and make a backup!.
并进行备份!
For the web.config file in the root of your site: 对于网站根目录中的web.config文件:
Important : make sure to copy back the version number, and the connection string as they were.
重要提示 :请确保照原样复制版本号和连接字符串。
Than Umbraco knows how to upgrade. 比Umbraco知道如何升级。 The installer will guide you through the upgrade.
安装程序将指导您完成升级。 when your hit the site and the version number in the web.config is not equal.
当您命中该站点且web.config中的版本号不相等时。 If your using SQL CE be really careful with the App_Data/Umbraco.sdf
如果您使用SQL CE,请务必谨慎使用App_Data / Umbraco.sdf
So on a minor upgrade you can try it with the sync button. 因此,在较小的升级中,您可以使用“同步”按钮进行尝试。 But it is not the official path.
但这不是官方路径。 (first create a backup) and direct after sync, restore the version and connection string in the web.config.
(首先创建备份),然后在同步后直接在web.config中还原版本和连接字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.