refactor - backend single bundle

This commit is contained in:
Jan Prochazka
2020-03-14 10:22:10 +01:00
parent 6a13d9fa19
commit cd58555409
10 changed files with 98 additions and 68 deletions

View File

@@ -27,7 +27,7 @@ module.exports = {
raw: true,
},
test(req, res) {
const subprocess = fork(`${__dirname}/../proc/connectProcess.js`);
const subprocess = fork(process.argv[1], ['connectProcess']);
subprocess.on('message', resp => res.json(resp));
subprocess.send(req.body);
},