info: Starting app...
Grunt :: module.js:340
throw err;
^
Error: Cannot find module '/var/lib/openshift/54a3a0ec4382ecf1130000f1/app-root/runtime/repo/node_modules/sails/node_modules/grunt-cli/bin/grunt'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
答案 0 :(得分:1)
OpenShift需要单独添加到package.json中的grunt,它不包含在盒子外面。
尝试在那里添加以下内容以使grunt工作:
"dependencies": { "grunt-cli": ">=0.1.13", "grunt": "~0.4.4",
<强>来源:强> https://gist.github.com/mdunisch/4a56bdf972c2f708ccc6