我一直在试图上传一个项目到一个dokku服务器用下面一行。错误:当我做混帐推送时找不到模块'socket.io'
混帐推dokku主
所以当项目启动要上传出现这样的错误:
----->运行预检
For more efficient zero downtime deployments, create a file CHECKS.
See http://progrium.viewdocs.io/dokku/checks-examples.md for examples
CHECKS file not found in container: Running simple container check...
---- - >等待10秒...
远程:应用程序容器无法启动!
=====>聊天容器输出:
> @ start /app
> node ./doc/node_servers/cobrowsing/server.js
module.js:339
throw err;
^
Error: Cannot find module '/usr/local/lib/node_modules/socket.io'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/app/doc/node_servers/cobrowsing/server.js:4:10)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:457:10)
npm ERR! Linux 3.13.0-57-generic
npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! @ start: `node ./doc/node_servers/cobrowsing/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script 'node ./doc/node_servers/cobrowsing/server.js'.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./doc/node_servers/cobrowsing/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /app/npm-debug.log
=====>端聊天容器输出
远程:错误从守护程序响应:不能杀死容器
244766ea68169dfaabcad927484efa546a5c9e7ba100845183a7595120c7668f :容器
244766ea68169dfaabcad927484efa546a5c9e7ba100845183a7595120c7668f未运行
远程:错误:未能杀死容器:
[244766ea68169dfaabcad927484efa546a5c9e7ba100845183a7595120c7668f]
! [远程拒绝]主 - >主(预接收钩拒绝)
我能做些什么来解决这个问题并上传项目?
错了标签,IMO。删除ios&git并添加dokku。也许甚至删除node.js – feliun