我正在使用 mup 部署 Meteor 应用程序:
- 码头工人图片:abernix/meteord:base
- 使用 ongoworks:spiderable 实现 phantomjs / docker 兼容性
Spiderable 在本地开发环境中运行良好。
我在尝试时遇到错误
$curl http://hostname?_escaped_fragment_=
内部服务器错误
而且,在 mup 日志中,我看到了这个:
spiderable: phantomjs failed: Error: Command failed: /bin/bash -c exec phantomjs --load-images=no --ignore-ssl-errors=yes /tmp/meteor_2576971355
at ChildProcess.exithandler (child_process.js:200:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:862:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
stderr:
Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.
at Object.Meteor.nodeCodeMustBeInFiber (packages/meteor.js:1075:11)
at [object Object]..extend.get (packages/meteor.js:1087:12)
at [object Object].RouteController.lookupOption (packages/iron_router.js:143:29)
at new Controller.extend.constructor (packages/iron_router.js:103:21)
at [object Object].ctor (packages/iron_core.js:144:17)
at Function.Router.createController (packages/iron_router.js:810:18)
at Function.Router.dispatch (packages/iron_router.js:1335:25)
at Object.router (packages/iron_router.js:624:12)
at next (/bundle/bundle/programs/server/npm/node_modules/meteor/webapp/node_modules/connect/lib/proto.js:174:15)
at Object.handle (packages/cfs_http-methods.js:444:12)