Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use nodemon with geddy? #557

Closed
mewben opened this issue Feb 27, 2014 · 4 comments
Closed

Can we use nodemon with geddy? #557

mewben opened this issue Feb 27, 2014 · 4 comments

Comments

@mewben
Copy link

mewben commented Feb 27, 2014

Hello, I find it hard to Ctrl+C, up arrow, then enter whenever I make changes to my code. Can we use nodemon to automate this process of restarting the app whenever a file is changed?

Thank you....

@molda
Copy link
Contributor

molda commented Feb 27, 2014

You need to have geddy installed locally
more info https://github.com/geddy/geddy/wiki/Using-Geddy-without-the-CLI

then create file server.js in your app directory

var geddy = require('geddy');

geddy.start({
  port: '4000',
  environment: 'development'
  //environment: process.env.NODE_ENV || 'development'
});

then run it

nodemon server.js 

I use this to run it with forever

@mewben
Copy link
Author

mewben commented Feb 27, 2014

Hi @molda Thanks for your answer...

I tried it but there is some strange behavior happening..

When I run nodemon server.js, it keeps restarting due to changes.. This goes forever..

[nodemon] starting 'node server.js'
[nodemon] restarting due to changes...
[nodemon] starting 'node server.js'
[nodemon] restarting due to changes...
[nodemon] starting 'node server.js'
[nodemon] restarting due to changes...

Please help...

@molda
Copy link
Contributor

molda commented Feb 27, 2014

I think you need to exclude ./log directory, you can create nodemon.json

{
  "ignore": ['log/*']
}

Check nodemon's docs for syntax

If that doesn't help then try to find what files are changed by geddy when you run it.
I think it's only the log directory, though.

@mewben
Copy link
Author

mewben commented Feb 28, 2014

Thanks @molda ... it finally works using this config in nodemon.json:

{
    "ignore": ["log/*", "public/js/core/*"]
}

@mewben mewben closed this as completed Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants