1

我使用此命令从命令行运行:

node app '--NODE_CONFIG={"redis":{"encryption":{"enabled":false}}}'

这会将存储为 true 的配置属性覆盖为 false。

在 Nodeclipse 中,我使用它作为程序参数:

'--NODE_CONFIG={"redis":{"encryption":{"enabled":false}}}'

当我从 Nodeclipse 运行时,该属性不会被覆盖。我将其视为正在运行的进程(ps -ef | grep 节点):

/usr/bin/node /home/dev/workspace/project/app.js '--NODE_CONFIG={"redis":{"encryption":{"enabled":false}}}'

这对我来说看起来不错,但该属性在应用程序中仍然是正确的。如果我停止 Nodeclipse 应用程序并复制并粘贴上面的行,则该属性设置为 false。

我还尝试将其复制到 Nodeclipse 中的 Node Arguments 部分,但出现错误。

4

0 回答 0