我正在尝试使用以下示例使用 greenlock-express 运行我的 Express.js:
https://git.coolaj86.com/coolaj86/greenlock-express.js/src/branch/master/examples/production.js
但我收到这些错误:
[:80] Handling ACME challenges and redirecting to http2 (spdy/h2)
[:443] Serving http2 (spdy/h2)
[error] [greenlock.app] Your HTTP handler had an uncaught error:
TypeError: greenlock.app is not a function
at //node_modules/greenlock-express/index.js:64:23
有谁知道这个例子为什么失败,我应该如何解决它?