-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.pland
More file actions
41 lines (33 loc) · 774 Bytes
/
index.pland
File metadata and controls
41 lines (33 loc) · 774 Bytes
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
37
38
39
40
41
try{
var Fw = require("promiseland-webframework");
var program = require('commander');
program
.version('0.0.1')
.option('-p, --port [number]', 'port number')
//.option('-f, --file [path]', 'filename of video file')
.parse(process.argv);
var dirs = [
"app",
"Broadway",
"libde265.js"
];
var i = 0;
for (i = 0; i < dirs.length; ++i){
dirs[i] = {
client: "/" + dirs[i],
server: __dirname + "/" + dirs[i] + "/"
};
};
var fw = new Fw({
load: "app/start",
loadOnConnect: "app/connected",
requireAuth: false,
session: false,
dirs: dirs,
css: ["app/style.css"]
});
fw.listen(program.port || 8080);
var server = require "./app/server";
}catch(e){
console.log(e);
};