【发布时间】:2018-09-14 06:43:22
【问题描述】:
我正在尝试使用
运行纱线服务器$ yarn run start --https
启动服务器,但使用 http 而不是 https。 --https 选项适用于我正在从事的另一个项目,但不适用于这个项目。我想知道是否还需要在 package.json 中设置一些东西来启用 https。作为参考,这是我克隆并正在使用的 github 项目:https://github.com/googlecreativelab/teachable-machine-boilerplate。
【问题讨论】:
-
试试
--ssl -
谢谢,那行得通。随时将此作为答案。并且也许添加一点解释为什么 --ssl 有效而 --https 无效。
标签: node.js npm yarnpkg deeplearn.js tensorflow.js