changed expressjs binding to localhost only and moved angularJS on top of html page

This commit is contained in:
Lucas Pleß 2013-10-21 01:15:35 +02:00
parent 494b509e15
commit d9438dd73f
2 changed files with 5 additions and 3 deletions

View File

@ -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');

View File

@ -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")