Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6853623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:32:03+00:00 2026-05-27T01:32:03+00:00

https://github.com/isaacs/node-supervisor I want to watch everything inside the api directory and all its subdirectories

  • 0

https://github.com/isaacs/node-supervisor

I want to watch everything inside the “api” directory and all its subdirectories (recursively). How can I do that?

sudo supervisor -w app.js,api app.js

This doesn’t seem to work. It only watches the “api” directory, not its subdirectories.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:32:04+00:00Added an answer on May 27, 2026 at 1:32 am

    Seems to be working and detect changes for me.

    If I use this to load the file:

    var module = require("./folder/test/variables.js")
    

    And Have a main node file:

    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
    

    is going to detect changes in folder/test/variables, which is a subfolder.

    Actually, supervisor says it is monitoring the current folder:

    DEBUG: Running node-supervisor with
    DEBUG:   program 'myApp.js'
    DEBUG:   --watch '.'
    DEBUG:   --extensions 'node|js'
    DEBUG:   --exec 'node'
    

    It is also reloading the files in folder/test if I use:

    supervisor -w folder myApp.js
    

    So, I guess you may have a different version of supervisor ? I am using 0.2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm studying SingalR( https://github.com/SignalR/SignalR ). I'm really want to send a message to all
I'm running into this problem after installing node 0.6.6 https://github.com/isaacs/npm/issues/1842 I'm not sure how
https://github.com/ajaxorg/ace/wiki/Embedding---API editor.session.on('change', callback); is how you bind an event to change. But how do
Accordng to https://github.com/reddit/reddit/wiki/API I need to: Post the following to http://www.reddit.com/api/submit : uh=f0f0f0f0&kind=link&url=yourlink.com&sr=funny &title=omg-look-at-this&id%23newlink&r=funny&renderstyle=html
I want to use CHDataStructures as framework: https://github.com/davedelong/CHDataStructures . However there is no binary
I'm using https://github.com/akzhan/jwysiwyg/ and i want to implement pasting from Word, but I'm not
I was playing with https://github.com/apneadiving/Google-Maps-for-Rails and i'd like to clear all the marker on
With node-canvas (https://github.com/learnboost/node-canvas) we can save Canvas on disk. How can we access Canvas
I am using https://github.com/st3fan/iphone-bitly classes and as the example i want to do something
https://github.com/werner77/WEPopover I am trying to implement this WEPopover API into my app. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.