changed expressjs binding to localhost only and moved angularJS on top of html page
This commit is contained in:
parent
494b509e15
commit
d9438dd73f
|
@ -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');
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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")
|
Loading…
Reference in New Issue