It seems that we are working and detecting changes for me.
If I use this to upload a file:
var module = require("./folder/test/variables.js")
And have the main file node:
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);
Then, just using:
supervisor myApp.js
will detect changes in the / test / variables folder, which is a subfolder.
Actually, the manager says that he controls the current folder:
DEBUG: Running node-supervisor with DEBUG: program 'myApp.js' DEBUG: --watch '.' DEBUG: --extensions 'node|js' DEBUG: --exec 'node'
It also reloads the files in the folder / test if I use:
supervisor -w folder myApp.js
So, I think you might have a different version of the supervisor? I am using 0.2
source share