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

Node.js 自动重载工具 nodemon #11

Open
JasinYip opened this issue Oct 2, 2015 · 2 comments
Open

Node.js 自动重载工具 nodemon #11

JasinYip opened this issue Oct 2, 2015 · 2 comments

Comments

@JasinYip
Copy link

JasinYip commented Oct 2, 2015

nodemon

今天发现了这个好用的 Node.js 自动重载工具 nodemon,与老牌 supervisor 不同的是,它原生支持 CoffeeScript,而且会自动 watch 文件的变化,当被 watch 的文件被修改时,会自动重新载入(reload)该文件。

安装:

npm install -g nodemon

使用:

nodemon ./server.coffee

更详细的介绍请查看:https://github.com/remy/nodemon

@haoranyu
Copy link
Member

haoranyu commented Oct 3, 2015

这里的“重载”指的是一个怎样的过程呢?

@JasinYip
Copy link
Author

JasinYip commented Oct 4, 2015

重载就是 reload。

  1. 当 server 有修改,就会 reload,跟 watch 差不多;
  2. 当程序跑挂了(Node 程序一挂了进程就关了),可以打 log,然后再 reload

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

No branches or pull requests

2 participants