feat: worker script, npm commands, complete setup docs - READY TO USE

This commit is contained in:
cawcenter
2025-12-15 01:58:55 -05:00
parent 07cf8342ee
commit 80236e4d56
3 changed files with 239 additions and 4 deletions

16
scripts/start-worker.js Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env node
/**
* Start the Content Generation Worker
* This should run as a separate process alongside the main Astro server
*/
import '../src/workers/contentGenerator.js';
console.log('🚀 Content Generation Worker is running...');
console.log('Press CTRL+C to stop');
// Keep process alive
process.on('SIGINT', async () => {
console.log('\n⏹ Shutting down worker...');
process.exit(0);
});