forked from chinatjnet/htmljs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.js
More file actions
executable file
·19 lines (16 loc) · 726 Bytes
/
run.js
File metadata and controls
executable file
·19 lines (16 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//var APPLICATION_NAME = 'htmljs';
//var API_KEY = '824cf53f197167cd94ba0815649d3749';
//require('strong-agent').profile(API_KEY, APPLICATION_NAME);
global.console.log = function(data){
var now = new Date()
console.info(now.getFullYear()+"-"+(now.getMonth()+1)+"-"+now.getDate()+" "+now.getHours()+":"+now.getMinutes()+":"+now.getSeconds())
console.info(data);
}
require ("coffee-script");
require ("iced-coffee-script");
require ("./lib/functionLoader.coffee")
require ("./lib/modelLoader.coffee")
var server = require ("./index.coffee")
require('http').createServer(server).listen(server.get("port"),function(){
console.log("Express server listening on port " + server.get("port"));
}).setMaxListeners(0);