首页 > 解决方案 > 永远的节点包 -w 不监视文件更改

问题描述

我正在使用永久节点包来运行节点应用程序。我在终端中使用了以下命令。

forever start index.js -w -l access.log

-l 用于维护日志 -w 用于监视文件更改

但不扣除文件更改。包.json:

{
  "name": "travel",
  "version": "1.0.0",
  "description": "travel",
  "main": "./bin/www",
  "scripts": {
    "start": ""
  },
  "keywords": [
    "Luxurious",
    "booking"
  ],
  "author": "john",
  "license": "ISC",
  "dependencies": {
    "apn": "^2.2.0",
    "apns": "^0.1.0",
    "app-root-path": "^2.0.1",
    "async-foreach": "^0.1.3",
    "axios": "^0.18.0",
  },
  "devDependencies": {
    "lite-server": "^2.4.0"
  }
}

标签: node.jsnode-modules

解决方案


推荐阅读