mirror of https://github.com/vladmandic/human
change default ports
parent
6ce691e880
commit
409e6749c0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -36,7 +36,7 @@
|
|||
"imports": []
|
||||
},
|
||||
"src/face/facepipeline.js": {
|
||||
"bytes": 13856,
|
||||
"bytes": 13836,
|
||||
"imports": [
|
||||
{
|
||||
"path": "dist/tfjs.esm.js"
|
||||
|
@ -84,7 +84,7 @@
|
|||
]
|
||||
},
|
||||
"src/age/age.js": {
|
||||
"bytes": 1943,
|
||||
"bytes": 2017,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.js"
|
||||
|
@ -98,7 +98,7 @@
|
|||
]
|
||||
},
|
||||
"src/gender/gender.js": {
|
||||
"bytes": 3384,
|
||||
"bytes": 2886,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.js"
|
||||
|
@ -112,7 +112,7 @@
|
|||
]
|
||||
},
|
||||
"src/emotion/emotion.js": {
|
||||
"bytes": 2981,
|
||||
"bytes": 3055,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.js"
|
||||
|
@ -264,7 +264,7 @@
|
|||
]
|
||||
},
|
||||
"src/hand/handdetector.js": {
|
||||
"bytes": 4252,
|
||||
"bytes": 4253,
|
||||
"imports": [
|
||||
{
|
||||
"path": "dist/tfjs.esm.js"
|
||||
|
@ -279,7 +279,7 @@
|
|||
"imports": []
|
||||
},
|
||||
"src/hand/handpipeline.js": {
|
||||
"bytes": 7923,
|
||||
"bytes": 7886,
|
||||
"imports": [
|
||||
{
|
||||
"path": "dist/tfjs.esm.js"
|
||||
|
@ -342,7 +342,7 @@
|
|||
]
|
||||
},
|
||||
"config.js": {
|
||||
"bytes": 8990,
|
||||
"bytes": 9243,
|
||||
"imports": []
|
||||
},
|
||||
"src/sample.js": {
|
||||
|
@ -354,7 +354,7 @@
|
|||
"imports": []
|
||||
},
|
||||
"src/human.js": {
|
||||
"bytes": 16524,
|
||||
"bytes": 16894,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.js"
|
||||
|
@ -408,7 +408,7 @@
|
|||
"dist/human.node-gpu.js.map": {
|
||||
"imports": [],
|
||||
"inputs": {},
|
||||
"bytes": 755811
|
||||
"bytes": 760521
|
||||
},
|
||||
"dist/human.node-gpu.js": {
|
||||
"imports": [],
|
||||
|
@ -430,7 +430,7 @@
|
|||
"bytesInOutput": 30828
|
||||
},
|
||||
"src/face/facepipeline.js": {
|
||||
"bytesInOutput": 9371
|
||||
"bytesInOutput": 9364
|
||||
},
|
||||
"src/face/facemesh.js": {
|
||||
"bytesInOutput": 2225
|
||||
|
@ -439,13 +439,13 @@
|
|||
"bytesInOutput": 846
|
||||
},
|
||||
"src/age/age.js": {
|
||||
"bytesInOutput": 1166
|
||||
"bytesInOutput": 1227
|
||||
},
|
||||
"src/gender/gender.js": {
|
||||
"bytesInOutput": 1936
|
||||
"bytesInOutput": 1997
|
||||
},
|
||||
"src/emotion/emotion.js": {
|
||||
"bytesInOutput": 1809
|
||||
"bytesInOutput": 1870
|
||||
},
|
||||
"src/embedding/embedding.js": {
|
||||
"bytesInOutput": 1361
|
||||
|
@ -484,10 +484,10 @@
|
|||
"bytesInOutput": 846
|
||||
},
|
||||
"src/hand/handdetector.js": {
|
||||
"bytesInOutput": 2868
|
||||
"bytesInOutput": 2869
|
||||
},
|
||||
"src/hand/handpipeline.js": {
|
||||
"bytesInOutput": 4500
|
||||
"bytesInOutput": 4491
|
||||
},
|
||||
"src/hand/anchors.js": {
|
||||
"bytesInOutput": 127034
|
||||
|
@ -505,7 +505,7 @@
|
|||
"bytesInOutput": 4037
|
||||
},
|
||||
"src/human.js": {
|
||||
"bytesInOutput": 10993
|
||||
"bytesInOutput": 11159
|
||||
},
|
||||
"src/log.js": {
|
||||
"bytesInOutput": 266
|
||||
|
@ -517,16 +517,16 @@
|
|||
"bytesInOutput": 1790
|
||||
},
|
||||
"config.js": {
|
||||
"bytesInOutput": 1440
|
||||
"bytesInOutput": 1454
|
||||
},
|
||||
"src/sample.js": {
|
||||
"bytesInOutput": 11646
|
||||
"bytesInOutput": 55341
|
||||
},
|
||||
"package.json": {
|
||||
"bytesInOutput": 20
|
||||
}
|
||||
},
|
||||
"bytes": 261473
|
||||
"bytes": 305516
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -806,9 +806,9 @@
|
|||
}
|
||||
},
|
||||
"esbuild": {
|
||||
"version": "0.8.21",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.21.tgz",
|
||||
"integrity": "sha512-vRRx5MZmiekw2R7jK5BppvBUFCJA0Zkl0wYxrDmyUvMPBcQC/xJvxJUM4R+Hgjgb3gp5P1W655AsuoqDeQQDVw==",
|
||||
"version": "0.8.22",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.8.22.tgz",
|
||||
"integrity": "sha512-7cgcJwjff5pw6JLTpUyN3QZ6raOYamfvBt7ry0tyGZwZJ/W8mJrHuv+VC5rbNEO4Mz8s8ElmcavKc7R2g1HWow==",
|
||||
"dev": true
|
||||
},
|
||||
"escalade": {
|
||||
|
@ -2258,9 +2258,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"simple-git": {
|
||||
"version": "2.26.0",
|
||||
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.26.0.tgz",
|
||||
"integrity": "sha512-I9QIjBNA773X23SZ/S1HFMCA+S//san83Twyd5ffWFjo/sv8VRk7tuck23y1uFWuzTu4KTwDh5LEXyCfEfOWMw==",
|
||||
"version": "2.27.0",
|
||||
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.27.0.tgz",
|
||||
"integrity": "sha512-/Q4aolzErYrIx6SgyH421jmtv5l1DaAw+KYWMWy229+isW6yld/nHGxJ2xUR/aeX3SuYJnbucyUigERwaw4Xow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@kwsites/file-exists": "^1.1.1",
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"@vladmandic/pilogger": "^0.2.9",
|
||||
"chokidar": "^3.4.3",
|
||||
"dayjs": "^1.9.7",
|
||||
"esbuild": "^0.8.21",
|
||||
"esbuild": "^0.8.22",
|
||||
"eslint": "^7.15.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
|
@ -44,7 +44,7 @@
|
|||
"eslint-plugin-promise": "^4.2.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"seedrandom": "^3.0.5",
|
||||
"simple-git": "^2.26.0"
|
||||
"simple-git": "^2.27.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
const process = require('process');
|
||||
const fs = require('fs');
|
||||
const zlib = require('zlib');
|
||||
const http = require('http');
|
||||
const http2 = require('http2');
|
||||
const path = require('path');
|
||||
const chokidar = require('chokidar');
|
||||
|
@ -28,7 +29,8 @@ const options = {
|
|||
cert: fs.readFileSync('server/https.crt'),
|
||||
root: '..',
|
||||
default: 'demo/index.html',
|
||||
port: 8000,
|
||||
httpPort: 10030,
|
||||
httpsPort: 10031,
|
||||
monitor: ['package.json', 'config.js', 'demo', 'src'],
|
||||
};
|
||||
|
||||
|
@ -128,9 +130,12 @@ async function httpRequest(req, res) {
|
|||
async function main() {
|
||||
log.header();
|
||||
await watch();
|
||||
const server = http2.createSecureServer(options, httpRequest);
|
||||
server.on('listening', () => log.state('HTTP2 server listening:', options.port));
|
||||
server.listen(options.port);
|
||||
const server1 = http.createServer(options, httpRequest);
|
||||
server1.on('listening', () => log.state('HTTP server listening:', options.httpPort));
|
||||
server1.listen(options.httpPort);
|
||||
const server2 = http2.createSecureServer(options, httpRequest);
|
||||
server2.on('listening', () => log.state('HTTP2 server listening:', options.httpsPort));
|
||||
server2.listen(options.httpsPort);
|
||||
await build.build('all', 'startup');
|
||||
}
|
||||
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit c4c8b30f6bf211ee267cf1884aaff9725f594631
|
||||
Subproject commit d6c8004121fdeff63b8aaf19adc3b3ade6b11918
|
Loading…
Reference in New Issue