ChrisWren / grunt-nodemon

Grunt task to run nodemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid multiple restart with big grunt processes

leny opened this issue · comments

Hi,

I have a little problem with nodemon : when my watch process is launched, triggering nodemon, nodemon restart on each change, as showed in this capture :

nodemon-issue
(I have blured the name of the project which is under NDA from my client, sorry)

What can i do to avoid that ?

Thanks in advance,

I am getting a 404 on the link can you re upload?—
Sent from Mailbox for iPhone

On Wed, Feb 26, 2014 at 4:37 PM, Pierre-Antoine Delnatte
notifications@github.com wrote:

Hi,
I have a little problem with nodemon : when my watch process is launched, triggering nodemon, nodemon restart on each change, as showed in this capture :
nodemon-issue
(I have blured the name of the project which is under NDA from my client, sorry)
What can i do to avoid that ?

Thanks in advance,

Reply to this email directly or view it on GitHub:
#37

Can you see it now ?

By default nodemon will watch every .js file, so it seems to be triggering a restart based on a change unrelated to your server. Could you post your config for the nodemon task?

Also, you can check out the ignore and watch options to make sure it only restarts when server files are changed.

Here it is :

   nodemon:
        work:
            script: "bin/project.js"
            options:
                ext: "js,jade"
                watch: [ "bin" ]
                ignore: [
                    "files/**"
                    "node_modules/**"
                    "src/**"
                    "static/**"
                ]

Are you running grunt-nodemon version 0.2.0?

If so, you could you run your grunt task with the -v or --debug flags which will show you more output so that you can see what file is triggering the nodemon restart.

Okay, i'll do that.

I close the issue until I see if the problem is caused by me or resulting from a bug in grunt-nodemon.

Thanks for your help. 👍