1

我想在 iis web 服务器的生产环境中配置 ghost 博客。

我怎么能这样做?

我必须在哪里输入这个命令?根据使用环境

NODE_ENV=production forever start index.js

NODE_ENV在节点命令提示符下键入此命令时未知!

4

1 回答 1

0

如果你打算使用 IIS 服务器来运行 ghost 博客:

  1. 您需要配置 iisnode 模块。
  2. 添加 web.config 文件,您可以指定您的环境。

<handlers> <add node_env="production" name="iisnode" path="index.js" verb="*" modules="iisnode" /></handlers>

https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config

于 2017-01-05T16:16:16.367 回答