0

I have a small production instance on Azure for my web app. To quickly make changes to the live site, I open the instance via RDC and copy across any dlls and files that need to be added. That seemed to be working fine.

However, last night, the instance seemed to have been reset (I'm still investigating why) and the version of the site was rolled back to a month or so ago.

I have read on StackOverFlow that any changes made via RDC are not saved when an instance reset is performed by Microsoft and that it rolls back to the previous Publish.

Surely there has to be a quicker way to make changes to a production instance than having to Publish the app each time? Each Publish takes approximately 45 minutes. If I'm making multiple deployments per day then is there a better solution?

4

2 回答 2

2

不,所有更改都必须发布。Microsoft 保证会有一个工作实例,但不保证它将是同一个实例。

我们一直在寻找其他解决方案,但现在只发布更改。但我们可能很幸运能浪费 10 分钟来发布。

于 2012-08-01T09:37:41.500 回答
1

您可以查看以下几件事:

  1. *.cspkg文件的大小。尝试缩小 *.cspkg 文件以减少上传时间。例如,您可以将图像、视频等静态文件存储在 blob 存储中。
  2. 使用将所有文件从 blob 容器同步到 IIS 网站的同步机制。如果您使用它,您可以简单地将文件复制到 blob 存储以更新您的实例。请注意,您需要考虑一些事情,例如您的启动任务会发生什么,滚动升级会怎样……?史蒂夫为此写了一篇很棒的博文:通过与 Blob 存储同步,在几秒钟内更新您的 Windows Azure 网站(这使用 WorkerRole 而不是 WebRole)
  3. 转到 Windows Azure 网站,这允许您使用 FTP、Git等立即部署...
于 2012-08-01T09:58:03.247 回答