-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.js
More file actions
executable file
·38 lines (29 loc) · 1.05 KB
/
run.js
File metadata and controls
executable file
·38 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var app = require('./core/core.js');
var routes = require('./core/routes.js');
var error = require('./routes/error/index.js')(routes);
var index = require('./routes/index/index.js')(routes);
var urlParse = require('./modules/urlParse.js');
// You can enable session. Cookies is safe because it takes into account the module ip address
/*
var session = require('./core/fjRedisSession.js');
session = new session(30);
var connector = require('./core/fjDBConnector.js');
*/
// includes a detailed error output in the trace file
app.setConfigProperty('error_reporting.debug_mode', true);
app.setConfigProperty('error_reporting.log_save', false);
//app.setConfigProperty('session.enabled', false);
app.init(1114, '127.0.0.1');
app.ws_init(4010);
// you can initialize session
/*
app.use(connector.init);
app.use(session.init);
*/
app.use(urlParse);
// You can specify an alias for a path to the static
app.setStaticPath('assets', 'css');
app.setRouts('/', index);
app.setRouts('index', index);
app.setRouts('account', index);
app.setRouts('error', error);