parent
2e6ce727ff
commit
b5acab8d86
@ -1,3 +1,4 @@
|
||||
{
|
||||
"sshPort": 1234
|
||||
"sshPort": 1234,
|
||||
"webPort": 4321
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
const
|
||||
childProcess = require('child_process'),
|
||||
path = require('path'),
|
||||
{ sshPort, webPort } = require('./config.json');
|
||||
childProcess.spawn(
|
||||
path.join(__dirname, './node_modules/.bin/wetty'),
|
||||
[`--ssh-host=localhost`, `--ssh-port=${sshPort}`, `--port=${webPort}`],
|
||||
{ stdio: 'inherit', stdin: 'inherit' }
|
||||
);
|
Loading…
Reference in new issue