【问题标题】:Nodejitsu says my app is "not a Node app" - Is there a special way to write a node app for Nodejitsu deployment?Nodejitsu 说我的应用程序“不是 Node 应用程序” - 有没有一种特殊的方法可以为 Nodejitsu 部署编写节点应用程序?
【发布时间】:2014-05-20 15:17:09
【问题描述】:

我已经编写了一个 node 应用程序,它在本地对我来说很好,但是当我尝试将它安装到 nodejitsu 时,我得到了响应:

C:\xampp\htdocs\officeball\node_scripts>jitsu install index_all.js
info:    Welcome to Nodejitsu jt0dd1995
info:    jitsu v0.13.9, node v0.10.23
info:    It worked if it ends with Nodejitsu ok
info:    Executing command install index_all.js
error:   Sorry, index_all.js is not a node app
error:   Error running command install index_all.js
help:    For help with this error contact Nodejitsu Support:
help:      webchat: <http://webchat.nodejitsu.com/>
help:          irc: <irc://chat.freenode.net/#nodejitsu>
help:        email: <support@nodejitsu.com>
help:
help:      Copy and paste this output to a gist (http://gist.github.com/)
info:    Nodejitsu not ok

C:\xampp\htdocs\officeball\node_scripts>

我需要编写一个节点应用程序以使其与nodejitsu 一起工作吗?

Here's the app

【问题讨论】:

  • 您可能需要在与您的应用程序相同的目录中有一个 package.json 文件,以便 jitsu 命令行程序确定您的应用程序的名称和其他属性。 package.json.nodejitsu.com

标签: node.js web-applications nodejitsu


【解决方案1】:

试着去做

  jitsu install

如果你有一个应该可以工作的package.json文件

【讨论】:

    猜你喜欢
    • 2012-07-30
    • 2012-07-13
    • 2015-03-12
    • 2013-05-29
    • 2013-05-25
    • 2014-09-01
    • 1970-01-01
    • 2012-11-27
    • 2013-07-19
    相关资源
    最近更新 更多