From c315a07d0ed23f54f2aa539881afea6551e5c839 Mon Sep 17 00:00:00 2001 From: h3yduck Date: Thu, 29 Jan 2015 19:57:57 +0100 Subject: [PATCH] Fire callback, so brunch will initialize watcher. Brunch 1.7.14 now waits for callback()... https://github.com/brunch/brunch/commit/1096dcf48b66bad83ce15babfb2860692eb7e5a6 --- dev/server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/server.js b/dev/server.js index f016ce2..2eeb085 100644 --- a/dev/server.js +++ b/dev/server.js @@ -7,7 +7,7 @@ /* Source: http://stackoverflow.com/questions/10434001/static-files-with-express-js */ -module.exports.startServer = startServer = function() { +module.exports.startServer = startServer = function(port, path, callback) { var express = require('express'); var app = express(); var path = require('path'); @@ -39,6 +39,7 @@ module.exports.startServer = startServer = function() { app.listen(9090); console.log('Listening on port 9090'); + callback(); // fire callback, so brunch will initialize watcher return app; }; @@ -70,4 +71,4 @@ restaurants = [ "The Hat", "The Whole Donut", "Togo's", "Tudor's Biscuit World", "The Varsity", "Wendy's", "Wetzel's Pretzels", "Whataburger", "White Castle", "Wienerschnitzel", "Winchell's Donuts", "Wingstop", "WingStreet", "Winstead's", "Wing Zone", "Woody's Chicago Style", "Yum-Yum Donuts", "Zaxby's" -] \ No newline at end of file +]