有几个tutorials在 Azure 上展示如何使用 git 部署 Node.js 服务器。 Azure 有一个很棒的功能,您可以将 Dropbox 文件夹链接到 Azure 网站,以进行非常简单的部署。对于网站来说效果很好,但我希望它也适用于 Node.js 部署。
它似乎不起作用 - 部署过程正常,但导航到 Node.js 部署的 URL 会产生此错误:
The page cannot be displayed because an internal server error has occurred.
有人知道是否可以通过 Dropbox 将 Node.js 服务器部署到 Windows Azure 吗?
非常感谢-
更新- 刚刚浏览了部署日志并发现了这一行:
The package.json file is not present.
The node.js application will run with the default node.js version 0.6.20.
也许这可以解释我的问题?
最佳答案
从控制台和文件夹中输入“npm init”以生成 package.json
关于node.js - 借助 Windows Azure,我可以使用 Dropbox 部署 Node.js 服务器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16007122/