Emberjs:在FastbootAppServer脚本

时间:2017-05-23 09:12:31

标签: ember.js ember-cli

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

旧版本的fastboot服务器Ember-fastboot-server允许我在运行服务器时设置端口号: https://github.com/ember-fastboot/fastboot

在IISnode上托管时,process.env.port上提供了所需的端口。

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

1 个答案:

答案 0 :(得分:0)

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