Example #1
0
 BootWeb.initSwig(app, function() {
   
 // gives app to auth module in order to map authentication (after application routes)
   BootWeb.auth.mapUrls(app);
   logger.info("start listening on port " + nconf.get("server:port"));
   httpServer.listen(nconf.get("server:port"),nconf.get("server:host"));
   //app.listen(1337);
   logger.info("http://"+ nconf.get("server:host") + ":" +  nconf.get("server:port") + "/");
   BootWeb.addStaticDir(staticsDir);
   staticsDir = path.join(__dirname , "../lib/static");
   BootWeb.addStaticDir(staticsDir, function(err, exist) {
     BootWeb.emit('ready', BootWeb);
   });
 });