【问题标题】:Emberjs: Setting port in FastbootAppServer scriptEmberjs:在 FastbootAppServer 脚本中设置端口
【发布时间】:2017-05-23 09:12:31
【问题描述】:

我正在使用 IISnode 实例在我的 Windows IIS 服务器上托管 Fastboot 服务器。

老版本的快速启动服务器,Ember-fastboot-server 允许我在运行服务器时设置一个端口号: https://github.com/ember-fastboot/fastboot

在 IISnode 上托管时,需要的端口在 process.env.port 中可用。

在新的 FastbootAppServer 中,这显然是不可能的。我将如何设置端口号?

【问题讨论】:

  • 我删除了我的答案,因为我认为 IISnode 不会尊重 unix 命令...。不过,我确实发现了一个有趣的 github 问题,它是切线相关的:github.com/tjanczuk/iisnode/issues/46

标签: ember.js ember-cli


【解决方案1】:

看起来好像新版本的 FastbootAppServer(相对于 ember-fastboot-server 的新版本)正在使用 Node 集群。 IISnode 不支持节点集群。我相信解决方案是要么使用基于节点的托管解决方案,要么使用中间件解决方案(例如 Express)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-25
    相关资源
    最近更新 更多