Pārlūkot izejas kodu

Fix travis builds

Matt Coles 9 gadi atpakaļ
vecāks
revīzija
84914be4c2
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      index.js

+ 4 - 2
index.js

@@ -59,8 +59,10 @@ app.use(bodyParser.json()); // for parsing application/json
59 59
 app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
60 60
 app.use('/', route_manager);
61 61
 app.use('/source', require('magic-window')('/source', { ignore: ['config', 'redis', 'cert.pem', 'key.pem', 'dump.rdb', 'logpasswd'] }))
62
-app.use('/log', auth, express.static('log'));
63
-app.use('/log', auth, serveIndex('log', {'icons': true}));
62
+if (production === "-p") {
63
+  app.use('/log', auth, express.static('log'));
64
+  app.use('/log', auth, serveIndex('log', {'icons': true}));
65
+}
64 66
 
65 67
 app.listen(3000, function () {
66 68
   console.log('Now accepting connections on port 3000.');