Node.js 部署到Heroku或Nodejitsu时出现CompoundJS错误
我正试图将compoundjs(又称railwayjs)部署到Heroku或Nodejitsu,作为我对NodeJS的第一个端到端测试 台阶Node.js 部署到Heroku或Nodejitsu时出现CompoundJS错误,node.js,heroku,nodejitsu,railway.js,Node.js,Heroku,Nodejitsu,Railway.js,我正试图将compoundjs(又称railwayjs)部署到Heroku或Nodejitsu,作为我对NodeJS的第一个端到端测试 台阶 节点安装:0.8.16 Heroku工具安装 npm安装化合物-g(v1.1.4-1) heroku应用程序示例,如中所述 packages.json中的调整:添加了如下引擎 "engines": { "node": "0.8.x", "npm": "1.1.x" }, 工头开始->应用程序工作完美 git添加和提交 git推送heroku主
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
},
Resolving engine versions
Using Node.js version: 0.8.14
Using npm version: 1.1.65
....
(main dependencies)
npm http GET https://registry.npmjs.org/ejs/-/ejs-0.8.3.tgz
npm http GET https://registry.npmjs.org/coffee-script/-/coffee-script-1.4.0.tgz
npm http 200 https://registry.npmjs.org/seedjs
npm http GET https://registry.npmjs.org/seedjs/-/seedjs-0.0.4.tgz
npm http 200 https://registry.npmjs.org/compound
npm http 200 https://registry.npmjs.org/ejs-ext/-/ejs-ext-0.1.4.tgz
npm http 200 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/compound/-/compound-1.1.4-1.tgz
npm http GET https://registry.npmjs.org/express/-/express-3.0.5.tgz
npm http 200 https://registry.npmjs.org/jugglingdb
npm http 200 https://registry.npmjs.org/stylus
npm http 200 https://registry.npmjs.org/ejs/-/ejs-0.8.3.tgz
npm http GET https://registry.npmjs.org/jugglingdb/-/jugglingdb-0.2.0-9.tgz
npm http GET https://registry.npmjs.org/stylus/-/stylus-0.31.0.tgz
npm http 200 https://registry.npmjs.org/coffee-script/-/coffee-script-1.4.0.tgz
npm http 200 https://registry.npmjs.org/seedjs/-/seedjs-0.0.4.tgz
npm http 200 https://registry.npmjs.org/stylus/-/stylus-0.31.0.tgz
npm http 200 https://registry.npmjs.org/express/-/express-3.0.5.tgz
npm http 200 https://registry.npmjs.org/compound/-/compound-1.1.4-1.tgz
在部署到nodejitsu时,我面临同样的问题(完全相同)。有什么想法吗?我指的是特定的依赖项版本,所以我假设这个问题与服务器中使用的过时依赖项无关
谢谢
使用Nodejitsu相关信息更新:
Nodejitsu登录jitsu部署
info: Welcome to Nodejitsu storni
info: jitsu v0.11.4, node v0.8.16
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in server.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write F:\repo\mine\last-jitsu-test\package.json
data:
data: {
data: scripts: { test: 'nodeunit test/*/*', start: 'server.js' },
data: name: 'last-jitsu-test',
data: version: '0.0.1-5',
data: dependencies: {
data: coffee-script: '>= 1.1.1',
data: stylus: '0.31.0',
data: seedjs: '0.0.4',
data: compound: '1.1.4-1',
data: ejs-ext: '0.1.4',
data: express: '3.0.5',
data: ejs: '0.8.3',
data: jugglingdb: '>= 0.1.0'
data: },
data: devDependencies: {
data: sinon: '*',
data: semicov: '*',
data: nodeunit: '*'
data: },
data: subdomain: 'storni.last-jitsu-test',
data: main: 'server.js',
data: engines: { npm: '1.1.x', node: '0.8.x' }
data: }
data:
prompt: Is this ok?: (yes)
info: Creating snapshot 0.0.1-5
info Uploading: [=============================] 100%
info: Updating app last-jitsu-test
info: Activating snapshot 0.0.1-5 for last-jitsu-test
info: Starting app last-jitsu-test
info: App last-jitsu-test is now started
info: http://storni.last-jitsu-test.jit.su on Port 80
info: Nodejitsu ok
storni.last-jitsu-test.jit.su/items->正常工作
storni.last-jitsu-test.jit.su/items/new->显示与Heroku部署中相同的错误页面
在这个场景中,我已经用香草在本地进行了测试
node server.js
我很乐意帮助你,但我在这里看到的所有细节都是基于Heroku的。请来irc(#nodejitsu@freenode)如果您需要一个交互式支持会话,则只需重新表述您的问题,这样Nodejitsu支持工程师就可以实际帮助您(与之相反,它在Nodejitsu中也不起作用)刚刚更新了Nodejitsu相关信息。谢谢从Nodejitsu的角度来看,部署工作完美无瑕,应用程序正在运行。我建议联系compoundjs团队,找出应用程序代码被破坏的原因。heroku/nodejutsu安装的compound版本是什么?在1.1.4-2中解决了,谢谢。
node server.js