refactor/match_collector: change folder structure
This commit is contained in:
@@ -390,12 +390,11 @@ async function generateChampionStats() {
|
||||
MONGO_HOST: 'localhost'
|
||||
};
|
||||
|
||||
// Run the match collector directly with tsx (TypeScript executor) instead of docker compose
|
||||
const matchCollectorPath = path.join(__dirname, '../../match_collector/index.ts');
|
||||
execSync(`npx tsx ${matchCollectorPath}`, {
|
||||
// Run the match collector
|
||||
execSync(`npm run dev`, {
|
||||
stdio: 'inherit',
|
||||
env: env,
|
||||
cwd: path.join(__dirname, '../..')
|
||||
cwd: path.join(__dirname, '../../match_collector')
|
||||
});
|
||||
|
||||
console.log('✅ Champion stats generated');
|
||||
|
||||
Reference in New Issue
Block a user