change spawn path

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

View File

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