change spawn path

merge-requests/1/merge
Matthew 2019-12-20 12:50:19 -05:00
parent 4ded030af6
commit c707a05f35
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ export default async function storage(client: Client) {
await main();
}, 900000); */
let storageGo = spawn(`${__dirname}/../bin/storage`, []);
storageGo.stdout.on('data', (data) => client.signale.log(data));
storageGo.stderr.on('data', (data) => client.signale.log(data));
storageGo.stdout.on('data', (data) => client.signale.log(data.toString()));
storageGo.stderr.on('data', (data) => client.signale.log(data.toString()));
storageGo.on('exit', (code) => {
client.signale.log(`Go storage func exited with code ${code}, restarting`);
storageGo = spawn(`${__dirname}/../bin/storage`, []);