diff --git a/node/statusbot.js b/node/statusbot.js index abd7339..e67d72e 100644 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -82,6 +82,7 @@ function work() { } setInterval(work, 60000); +work(); app.set('snmpMac', snmpMac); //TODO: wie kann man das schoener machen? (Modul in die Routes reintun) app.set('views', __dirname + '/views'); @@ -112,7 +113,7 @@ app.post('/form', routes.form); app.get('/', routes.index); -server.listen(3000); +server.listen(3000, 'localhost'); diff --git a/node/views/layout.jade b/node/views/layout.jade index f7e2fc7..83bf36e 100644 --- a/node/views/layout.jade +++ b/node/views/layout.jade @@ -5,6 +5,8 @@ html(ng-app="roomstateapp") //if IE 7 link(rel="stylesheet",href="/css/ink-ie7-min.css",type="text/css",media="screen") + script(type="text/javascript",src="/js/vendor/angular.min.js") + script(type="text/javascript",src="/socket.io/socket.io.js") link(rel='stylesheet', href='/css/ink-min.css') link(rel='stylesheet', href='/css/style.css') @@ -29,7 +31,7 @@ html(ng-app="roomstateapp") - script(type="text/javascript",src="/js/vendor/angular.min.js") + script(type="text/javascript",src="/js/vendor/ink.min.js") script(type="text/javascript",src="/js/vendor/autoload.js") script(type="text/javascript",src="/js/vendor/html5shiv.js") @@ -39,4 +41,3 @@ html(ng-app="roomstateapp") //script(type="text/javascript",src="/js/vendor/modernizr.js") script(type="text/javascript",src="/js/app.js") script(type="text/javascript",src="/js/controllers.js") - script(type="text/javascript",src="/socket.io/socket.io.js") \ No newline at end of file