Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed restarting the cluster workers on code change #381

Merged
merged 1 commit into from

3 participants

@tstachl

A recent change in mde/utilities@6b8ea03 broke the file watch function. This fixes it however because mde/utilities uses fs.watch instead of fs.watchFile we can't compare the timestamps any longer.

@ben-ng
Owner
@mde mde merged commit 02a7567 into geddy:master
@mde
Owner
mde commented

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 7, 2013
  1. @tstachl

    fixed restart on code change

    tstachl authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/cluster/master.js
View
6 lib/cluster/master.js
@@ -193,10 +193,8 @@ Master.prototype = new (function () {
, _watchFiles = function () {
var self = this
, dir = process.cwd()
- , callback = function (curr, prev) {
- if (curr.mtime.getTime() != prev.mtime.getTime()) {
- _monitorProcesses.call(self, {manualRotate: true});
- }
+ , callback = function (file) {
+ _monitorProcesses.call(self, {manualRotate: true});
};
// Watch individual files so we can compare mtimes and restart
// on code-changes
Something went wrong with that request. Please try again.