【问题标题】:PM2 - Run Coffeescript file with NodeJS ParametersPM2 - 使用 NodeJS 参数运行 Coffeescript 文件
【发布时间】:2016-10-08 16:29:20
【问题描述】:

我有一个用 coffeescript 编写的 NodeJS 应用程序,它需要我设置 stack_size 参数才能正确运行。该命令看起来像这样让它运行。

coffee --nodejs --stack_size=65000 app.coffee

现在我想将它集成到 PM2 中,但不知道如何添加像 stack_size 这样的参数。我该怎么办?

【问题讨论】:

    标签: node.js coffeescript pm2


    【解决方案1】:

    你去吧:

    pm2 start app.coffee --node-args="--max-stack-size=65000"
    

    Documentation

    请注意,从 pm2@2.x 开始,您必须先安装咖啡支持:

    pm2 install coffeescript
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-30
      • 1970-01-01
      • 1970-01-01
      • 2013-04-29
      • 1970-01-01
      • 1970-01-01
      • 2011-10-21
      • 1970-01-01
      相关资源
      最近更新 更多