Skip to content

Commit 774eb9a

Browse files
imlucaskangas
authored andcommitted
fix(server): comment out tinylr in server for now
should be moved to scout-electron. this way we won’t show any confusing/embarrassing error messages on stage.
1 parent c0053b3 commit 774eb9a

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

scout-server/lib/index.js

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,30 @@ var urldecode = require('body-parser').urlencoded({
1414
app.server = require('http').createServer(app);
1515
app.config = require('mongoscope-config');
1616

17-
if (process.env.NODE_ENV = 'development') {
18-
app.use(require('connect-livereload')({
19-
port: 35729,
20-
include: ['./']
21-
}));
22-
var livereload = require('tiny-lr')();
23-
var watch = require('watch');
24-
25-
livereload.listen(35729, '127.0.0.1');
26-
27-
watch.watchTree(__dirname + '/../', {
28-
filter: function(filename) {
29-
return !(/node_modules/.test(filename));
30-
},
31-
ignoreDotFiles: true
32-
}, function(files) {
33-
livereload.changed({
34-
body: {
35-
files: files
36-
}
37-
});
38-
});
39-
}
17+
// @todo: this should be moved to scout-electron now.
18+
// if (process.env.NODE_ENV = 'development') {
19+
// app.use(require('connect-livereload')({
20+
// port: 35729,
21+
// include: ['./']
22+
// }));
23+
// var livereload = require('tiny-lr')();
24+
// var watch = require('watch');
25+
26+
// livereload.listen(35729, '127.0.0.1');
27+
28+
// watch.watchTree(__dirname + '/../', {
29+
// filter: function(filename) {
30+
// return !(/node_modules/.test(filename));
31+
// },
32+
// ignoreDotFiles: true
33+
// }, function(files) {
34+
// livereload.changed({
35+
// body: {
36+
// files: files
37+
// }
38+
// });
39+
// });
40+
// }
4041

4142

4243
app.use(require('./middleware/watch-event-loop-blocking'));

0 commit comments

Comments
 (0)