【发布时间】:2012-09-25 20:38:37
【问题描述】:
TL;DR
- 作为云服务托管在 Azure 上的 Node.js 应用。
- 发布失败(应用未上传)但似乎有效。
解释:
我在使用网站和云服务的 Windows Azure 上有一个帐户。我将我的网站移至云服务,以便能够使用自定义域。
自从搬家后,我使用 Azure cmdlet 发布我的 Node.js 网络服务器。在发布之前工作正常,通常需要 5 到 10 分钟才能完成。发布后,该网站将包含最新内容。
我的问题是,现在发布不到 2 分钟,没有报错,内容也没有更新。 为什么我的应用没有发布它的内容?
以下是我的发布输出:
PS C:\Projects\Azure\CloudServices\jwbsite\JWB> ls
Directory: C:\Projects\Azure\CloudServices\jwbsite\JWB
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 9/8/2012 10:22 AM bin
d---- 9/12/2012 3:30 PM controllers
d---- 9/11/2012 1:16 PM data
d---- 9/12/2012 4:00 PM extensions
d---- 9/10/2012 2:37 PM models
d---- 9/12/2012 2:45 PM node_modules
d---- 9/12/2012 3:23 PM public
d---- 9/8/2012 10:28 AM views
-a--- 9/25/2012 3:44 PM 411 package.json
-a--- 9/13/2012 11:14 AM 224 robots.txt
-a--- 9/17/2012 2:45 PM 605 routes.js
-a--- 9/17/2012 10:59 AM 1902 server.js
-a--- 8/25/2012 1:28 PM 3251 Web.cloud.config
-a--- 8/25/2012 1:28 PM 3251 Web.config
PS C:\Projects\Azure\CloudServices\jwbsite\JWB> Publish-AzureServiceProject
Publishing to Windows Azure. This may take several minutes...
4:27:17 PM - Preparing runtime deployment for service 'jwbsite'
4:27:20 PM - Preparing deployment for jwbsite with Subscription ID: ABCDEFGH-IJKL-MNOP-QRST-UVWXYZ012345...
4:27:21 PM - Connecting...
4:27:27 PM - Verifying storage account 'jwbsite'...
4:27:27 PM - Uploading Package...
4:27:39 PM - Upgrading...
4:27:50 PM - Created Deployment ID: ABCDEFGHIJKLMNOPQRSTUVWXYZABCDE.
4:27:50 PM - Starting...
4:27:50 PM - Initializing...
4:27:51 PM - Instance JWB_IN_0 of role JWB is ready.
4:27:51 PM - Instance JWB_IN_1 of role JWB is ready.
4:27:51 PM - Instance JWB_IN_2 of role JWB is ready.
4:27:51 PM - Instance JWB_IN_3 of role JWB is ready.
4:27:52 PM - Created Website URL: http://jwbsite.cloudapp.net.
4:27:52 PM - Complete.
PS C:\Projects\Azure\CloudServices\jwbsite\JWB>
请告诉我,感谢您的帮助。
【问题讨论】:
-
这不会回答问题,但是如果您删除部署,问题会再次出现吗?
-
@JimO'Neil 当您说部署时,您指的是哪些文件?
-
当您重新部署时,您正在更新现有的服务;我想知道创建一个新服务是否会“清除”问题,或者可能会更加清楚。查看 Remove-Azuredeployment 和 Remove-AzureService cmdlet。同样,不会“修复”它,但可能会解决它和/或提供更多关于它为什么不工作的信息
-
我一直在使用 Azure 的技术支持,他们不知道为什么它不起作用,但他们说他们会上传我为我准备的内容。如果我弄清楚发生了什么,我会在这里发帖。
标签: node.js azure cloud project publish