我正在使用永久节点包来运行节点应用程序。我已经在终端中使用了以下命令。
forever start index.js -w -l access.log
-l用于维护日志 -w观看文件更改
但是不会扣除文件更改。 package.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"
}
}