https://github.com/isaacs/node-supervisor在node-supervisor中,如何查看目錄中的所有更改?
我想觀看「api」目錄及其所有子目錄(遞歸)中的所有內容。我怎樣才能做到這一點?
sudo supervisor -w app.js,api app.js
這似乎不起作用。它只監視「api」目錄,而不是其子目錄。
https://github.com/isaacs/node-supervisor在node-supervisor中,如何查看目錄中的所有更改?
我想觀看「api」目錄及其所有子目錄(遞歸)中的所有內容。我怎樣才能做到這一點?
sudo supervisor -w app.js,api app.js
這似乎不起作用。它只監視「api」目錄,而不是其子目錄。
似乎正在工作,並檢測到我的變化。
如果我用這個來加載文件:
var module = require("./folder/test/variables.js")
,有一個主節點文件:
var module = require("./folder/test/variables.js")
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('The variable is '+ module.variable)
}).listen(7777);
然後,只需使用:
supervisor myApp.js
是要檢測文件夾/測試/變量的變化,這是一個子文件夾。
事實上,主管說,這是監測當前文件夾:
DEBUG: Running node-supervisor with
DEBUG: program 'myApp.js'
DEBUG: --watch '.'
DEBUG: --extensions 'node|js'
DEBUG: --exec 'node'
它也重裝文件夾中的文件/測試,如果我使用:
supervisor -w folder myApp.js
所以,我想你可能有一個不同版本的主管?我使用0.2
我只是看我使用所有的擴展:
supervisor -e 'js|ejs|less' app.js
爲**所有擴展**,你可以使用'主管-e「」 app.js' – Falcon
不知道這是否可用4年前:) – chovy