我很确定我做错了什么 . 但让我试着解释一下我的情况......

我创建了一个配置了持续交付的Azure应用服务 . 到目前为止,我看到我的所有部署都是成功的 . 当我转到我的应用服务网址时,我会看到 Service Unavailable .

现在我怀疑我的问题可能与正在部署的内容有关 . 请注意,我使用Visual Studio Online进行源代码控制和构建系统 .

源/ repo只有3个文件夹:

- A folder called .vscode    

 - A folder called Tools (a bunch of .net console apps)    

 - A folder called Service (my node.js based service)

现在,源构建成功 . 在排队的构建之后触发的持续部署成功完成 . 但是当我去服务网址时,我看到了可怕的消息“服务不可用” .

I suspect the problem is related to this:

Basically im not sure what is being deployed here. 
What i want to deploy is just the Service folder (my node.js app). 
I suspect somehow that the entire source tree is being deployed.

一些额外的细节:

Http Protocol: HTTPS
Error: 503 - Service Temporarily Unavailable

任何帮助/见解都非常感谢!

Updates 如果Continuous Delivery选项可以部署node.js应用程序,我感到很困惑 . 我确实遇到过这个article,它显示了如何通过"Push to Azure from Git"部署node.js应用程序 .

Updates 2 我现在不完全确定,因为我还没试过这个 . 但是这个question的答案似乎占据了关键(看起来它正是我正在寻找的) .

Updated 3 我实际上能够启动node.js应用程序 . 问题是.js文件是两个文件夹深(在Service文件夹中) . 我更新了"Deploy Azure App Service"下的"Startup command"设置(在Continuous Delivery构建定义下) . 现在我可以看到(来自Kudu Docker日志)它正在运行 .

我现在遇到的问题是node.js应用程序似乎无法连接到Azure SQL数据库(这在我本地运行时有效) .