Monitoring coffee-script file doesn't restart server #32

Closed
dimroc opened this Issue Aug 15, 2011 · 11 comments

Comments

7 participants
@dimroc

dimroc commented Aug 15, 2011

"nodemon app.coffee" doesn't result in a server restart when making changes to the app.coffee file.

@remy

This comment has been minimized.

Show comment Hide comment
@remy

remy Aug 18, 2011

Owner

Can you include an example app.coffee script that you're seeing problems with. In addition, can you let me know what version of Node you're running on (just in case it's that).

Owner

remy commented Aug 18, 2011

Can you include an example app.coffee script that you're seeing problems with. In addition, can you let me know what version of Node you're running on (just in case it's that).

@dimroc

This comment has been minimized.

Show comment Hide comment
@dimroc

dimroc Aug 19, 2011

Node v0.4.8
nodemon v0.5.3

https://gist.github.com/1156230

dimroc commented Aug 19, 2011

Node v0.4.8
nodemon v0.5.3

https://gist.github.com/1156230

@antono

This comment has been minimized.

Show comment Hide comment
@antono

antono Aug 27, 2011

+1 here. also zappa based app

antono commented Aug 27, 2011

+1 here. also zappa based app

@b00giZm

This comment has been minimized.

Show comment Hide comment
@b00giZm

b00giZm Aug 29, 2011

@dimroc / @antono

Make sure you got the ".nodemonignore" file in your app root.
Without it nodemon only watches changes in .js files.

b00giZm commented Aug 29, 2011

@dimroc / @antono

Make sure you got the ".nodemonignore" file in your app root.
Without it nodemon only watches changes in .js files.

@dimroc

This comment has been minimized.

Show comment Hide comment
@dimroc

dimroc Sep 17, 2011

Thanks b00giZm, adding .nodemonignore with paths: *.js, .git, and public/ did the trick

dimroc commented Sep 17, 2011

Thanks b00giZm, adding .nodemonignore with paths: *.js, .git, and public/ did the trick

@dimroc dimroc closed this Sep 17, 2011

@jeffmarshall

This comment has been minimized.

Show comment Hide comment
@jeffmarshall

jeffmarshall Dec 18, 2011

Is there a way I can get nodemon to ignore everything but *.coffee and /node_modules/* or something like that? I tried this:

/*
!*.coffee
!/node_modules/*

but it didn't work.

Is there a way I can get nodemon to ignore everything but *.coffee and /node_modules/* or something like that? I tried this:

/*
!*.coffee
!/node_modules/*

but it didn't work.

@remy

This comment has been minimized.

Show comment Hide comment
@remy

remy Dec 18, 2011

Owner

I'm not 100% if this is easy to add or not - but there's no current not rule. But I suspect actually you need to say: restart if any file except *.js or *.coffee is changed - and currently nodemon defaults to .js only - but I should upgrade it to ignore .coffee too if it's being run in coffeescript mode. Agree?

Owner

remy commented Dec 18, 2011

I'm not 100% if this is easy to add or not - but there's no current not rule. But I suspect actually you need to say: restart if any file except *.js or *.coffee is changed - and currently nodemon defaults to .js only - but I should upgrade it to ignore .coffee too if it's being run in coffeescript mode. Agree?

@jcollum

This comment has been minimized.

Show comment Hide comment
@jcollum

jcollum Mar 15, 2012

So if you start nodemon and explicitly tell it to watch a .coffee file, it will still only restart the server if a .js file changes? That seems wacky. 0.6.12

jcollum commented Mar 15, 2012

So if you start nodemon and explicitly tell it to watch a .coffee file, it will still only restart the server if a .js file changes? That seems wacky. 0.6.12

@remy

This comment has been minimized.

Show comment Hide comment
@remy

remy Mar 15, 2012

Owner

@jcollum erm, nope - that's not how it worked (I just checked for my own sanity). If you:

nodemon foo.coffee

And a .coffee file is changed, nodemon will restart. This bug was filed when there was an issue where nodemon wouldn't restart - but was fixed some time back.

Owner

remy commented Mar 15, 2012

@jcollum erm, nope - that's not how it worked (I just checked for my own sanity). If you:

nodemon foo.coffee

And a .coffee file is changed, nodemon will restart. This bug was filed when there was an issue where nodemon wouldn't restart - but was fixed some time back.

@jcollum

This comment has been minimized.

Show comment Hide comment
@jcollum

jcollum Mar 15, 2012

I think the bug may have come back. I'll put in a new issue if I can repro.

jcollum commented Mar 15, 2012

I think the bug may have come back. I'll put in a new issue if I can repro.

@opensas

This comment has been minimized.

Show comment Hide comment
@opensas

opensas Mar 18, 2013

Is there some way to tell nodemon to also recompile coffee files?

See this quesiton at stackoverflow for more details: http://stackoverflow.com/questions/15470334/autocompile-coffee-files-and-reload-project

opensas commented Mar 18, 2013

Is there some way to tell nodemon to also recompile coffee files?

See this quesiton at stackoverflow for more details: http://stackoverflow.com/questions/15470334/autocompile-coffee-files-and-reload-project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment