mirror of
https://github.com/lucaspalomodevelop/JSSTE_APP.git
synced 2026-03-13 00:07:22 +00:00
add start-script | cleanup
This commit is contained in:
parent
f8cd745a21
commit
8632c73d1d
@ -4,7 +4,8 @@
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "mocha ./test/index.js"
|
||||
"test": "mocha ./test/index.js",
|
||||
"start":"node ./src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"body-parser": "^1.19.2",
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
let conf = require("./helper/conf")();
|
||||
// let jsste = require("./jsste")(conf);
|
||||
let websrv = require("./websrv")(conf);
|
||||
|
||||
// console.log("jssteconfig", conf);
|
||||
|
||||
websrv.slisten((host, port) => {
|
||||
console.log("Server started on http://" + host + ":" + port);
|
||||
|
||||
@ -12,13 +12,6 @@ module.exports = function (conf) {
|
||||
app.use(cookieParser());
|
||||
|
||||
app.use("/internal", internalRouter);
|
||||
// app.get("/config", (req, res) => {
|
||||
// // let files = [];
|
||||
// // fs.readdirSync(conf.jsste.paths.files).forEach((file) => {
|
||||
// // files.push(file);
|
||||
// // });
|
||||
// res.json(conf);
|
||||
// });
|
||||
|
||||
app.slisten = function (cb) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user