mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-01 18:03:56 +02:00
remove broken test framework (will come back soon)
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var port = process.argv[2];
|
||||
|
||||
if(!port){
|
||||
|
||||
if(/^win/.test(process.platform)){
|
||||
|
||||
port = 80;
|
||||
}
|
||||
else{
|
||||
|
||||
port = 8080;
|
||||
}
|
||||
}
|
||||
|
||||
var ws = require('web-servo');
|
||||
|
||||
ws.config({
|
||||
|
||||
"server": {
|
||||
"port": port,
|
||||
"dir": "/",
|
||||
"exitOnError": false,
|
||||
"ssl": {
|
||||
"enabled": false,
|
||||
"key": "",
|
||||
"cert": ""
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
"default": "index.html"
|
||||
},
|
||||
"methods": {
|
||||
"allowed": [
|
||||
"OPTIONS",
|
||||
"GET",
|
||||
"POST",
|
||||
"HEAD",
|
||||
"PUT",
|
||||
"PATCH",
|
||||
"DELETE"
|
||||
//"COPY",
|
||||
//"LINK",
|
||||
//"UNLINK",
|
||||
//"TRACE",
|
||||
//"CONNECT"
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
//ws.setConfigVar('server.port', port);
|
||||
ws.silent().start();
|
||||
|
||||
console.log("-----------------------------------------------------");
|
||||
console.log("Hit CTRL-C to stop the server...");
|
Reference in New Issue
Block a user