Browse Source

Change compiled analytics path: dist/worker/worker -> dist/server/server

pull/1/head
rozetko 6 years ago
parent
commit
34ad34eda6
  1. 6
      server/src/services/analytics_service.ts

6
server/src/services/analytics_service.ts

@ -118,9 +118,9 @@ export class AnalyticsService {
} }
}; };
if(fs.existsSync(path.join(config.ANALYTICS_PATH, 'dist/worker/worker'))) { if(fs.existsSync(path.join(config.ANALYTICS_PATH, 'dist/server/server'))) {
console.log('dist/worker/worker'); console.log('dist/server/server');
cp = childProcess.spawn('dist/worker/worker', [], cpOptions); cp = childProcess.spawn('dist/server/server', [], cpOptions);
} else { } else {
console.log('python3 server.py'); console.log('python3 server.py');
// If compiled analytics script doesn't exist - fallback to regular python // If compiled analytics script doesn't exist - fallback to regular python

Loading…
Cancel
Save