32 Commits

Author SHA1 Message Date
Unitech
9821ca03af (pm2)(watch) fallback to watch & restart instead of watch & reload 2016-08-06 20:58:16 -07:00
Unitech
9831cd632e watcher now reload app instead of restart 2016-06-14 12:47:13 +02:00
Unitech
c3c0fcff46 add Copyright header to each file 2016-03-22 23:33:43 +01:00
soyuka
cb4aecbe0d fix #1947 allow multiple --watch options for multiple paths 2016-03-12 15:39:52 +01:00
Antoine Bluchet
c0ced46be8 fix #1746 2015-11-04 14:19:51 +01:00
Antoine Bluchet
506c7146e4 Watch refactor: improve tests, paths resolving
- move tests from bash to js
- removed `pm2_env`.watch path resolving in favor of chokidar `cwd`
  option ([see here](https://github.com/paulmillr/chokidar/blob/master/CHANGELOG.md#chokidar-100-7-april-2015)) (fix #1577)
- if watch is a boolean, path is set to process cwd (`pm2_env.pm_cwd`) (keep #1578 coverage)
2015-09-03 23:43:13 +02:00
Antoine Bluchet
f6847bae3b fix #1578 use pm_cwd instead of env.PWD
env.PWD will not be defined on windows
2015-09-03 11:04:59 +02:00
Antoine Bluchet
4c7189e42a fix #1379 ignore_watch is empty 2015-07-29 16:04:11 +02:00
Unitech
4848e5c974 avoid safe stringification and JSON.parsing to deep copy and remove circular dependencies + centralize object cloning + reduce data in pm2 pipeline + avoid complex object attached to pm2_env #1326 #1314 2015-06-09 17:30:16 +02:00
jshkurti
8e781bf656 added method Watch.disableAll() 2015-03-11 19:26:58 +01:00
Unitech
0f23e6c50c kill modules when killing pm2 + wait for module to start on pm2 initialization 2015-03-06 17:46:30 -05:00
Unitech
3d4d46f0ad POC module system 2015-02-07 22:37:38 -05:00
soyuka
63882d873a Verbose watcher to avoid stupid waste of time (~/.pm2/pm2.log) 2015-01-28 22:58:07 +01:00
soyuka
8a373e131f Add options for chokidar - fix #931 #870 2015-01-28 22:55:32 +01:00
Unitech
decc23b0ff fix test suit 2014-12-12 18:32:49 +01:00
Unitech
04bbcc73db merge from master 2014-11-25 17:04:40 +01:00
Tjatse
cce859a338 CLI ignore_watch supports 2014-11-24 14:41:32 +08:00
Jamie
29e062e0ca small changes 2014-11-23 22:33:45 +08:00
Jamie
6a5712814e fix the directory or file not found bug when there is cwd key in JSON app declaration 2014-11-23 00:08:30 +08:00
Tjatse
4fd8351188 fixes #809 Watcher should be persisted 2014-11-14 12:29:31 +08:00
Antoine Bluchet
2c3edd1374 Watcher - log change detection to debug instead of console (#713) 2014-09-16 11:47:10 +02:00
tknew2
41799ce5de #694 watch supervize by app name 2014-09-09 18:24:38 +02:00
tknew2
1b6893da2a fix --watch (reflect API changes) 2014-08-24 22:03:43 +02:00
abluchet
090c032e1d Attempt to fix #613 2014-08-07 12:25:33 +02:00
abluchet
f3f19c8ea0 (watch) better debug logs 2014-08-07 11:54:34 +02:00
tknew2
cf46c99303 add comments 2014-06-13 16:11:43 +02:00
abluchet
67833a9f97 Merge remote-tracking branch 'nmrugg-511/master'
Conflicts:
	package.json
2014-06-12 15:13:43 +02:00
Michael Heuberger
8302f8df89 allow paths in watch option (mh) 2014-06-04 23:48:26 +12:00
Michael Heuberger
0ed5098d93 allow paths in watch option (mh) 2014-06-04 13:54:35 +12:00
Chris Manson
5770375407 adding watch ignore to the processes.json 2014-05-14 05:46:28 +00:00
soyuka
07d5a3de55 Added node_modules to default ignored paths 2014-04-24 13:47:50 +02:00
soyuka
a8ee76312e Satan is calling God watch methods when --watch argument is called
Added God watch methods and actionsMethods
Added Watcher to store watch instances to close/start them - could be improved to add/ignore specific files #368
2014-04-12 15:39:58 +02:00