0

I have an Azure Web Site. The site is automatically built and deployed via TFS online (visualstudio.com). The site has Web Site Mode = Standard, and Always On = Enabled.

I also have a continuous Azure Web Job in the form of a console application. The web job is not included in the automatic deployment. Instead it is updated manually. (Eventually I'm looking to deploy it automatically as well, but not for the moment.)

My web job runs fine, once every minute. I can follow its progress in the job log available on the Azure portal. It can run for several days without problem.

But when I deploy a new version of the web site, the web job stops, and does not start again. Unless you visit the Web Job tab on the Azure portal, then it starts again. (The web job files are not overwritten by the deployment of the web site.)

Why is this? Is there anything I can do to make it not stop, or at least start again once deployment is complete?

4

1 回答 1

1

你有这个部署的 kudu 脚本吗?如果您查看生成的脚本

azure site deploymentscript --dotNetConsole

有一个电话

:: 3. Run web job deploy script
IF DEFINED WEB_JOB_DEPLOY_CMD (
  call :ExecuteCmd "%WEB_JOB_DEPLOY_CMD%" 
)

这可能会启动这个过程。

虽然如果您已经有一个 kudu 脚本,查看生成的脚本文件,您可以将部署选项复制到现有脚本中(确保有另一个清单用于第二个 kudu 同步)。那时,您可以通过 TFS 推送进行整合部署

于 2014-03-14T11:59:33.897 回答