【问题标题】:With Windows Azure, can I deploy a node.js server using Dropbox?对于 Windows Azure,我可以使用 Dropbox 部署 node.js 服务器吗?
【发布时间】:2013-08-24 18:53:35
【问题描述】:

Azure 上有几个tutorials 展示了如何使用 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.

也许它解释了我的问题?

【问题讨论】:

  • 如果您缺少 package.json 文件,大多数 node.js 提供程序将不会运行应用程序。这是一个让您入门的好页面:package.json.nodejitsu.com。另外关于版本,在 package.json 中有一个称为引擎的特定参数/键,确保它是 0.8.x(以前稳定)或 0.10.x(稳定)

标签: node.js azure dropbox


【解决方案1】:

从控制台和文件夹中输入“npm init”来生成 package.json

【讨论】:

    猜你喜欢
    • 2012-02-26
    • 1970-01-01
    • 2017-06-19
    • 1970-01-01
    • 2011-04-18
    • 1970-01-01
    • 2017-05-10
    • 2022-01-21
    • 1970-01-01
    相关资源
    最近更新 更多