Files
flyer-crawler.projectium.com/docs/README.md
Torben Sorensen 07125fc99d
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 56m40s
feat: complete PM2 namespace implementation (100%)
Add missing namespace flags to pm2 save commands and comprehensive tests
to ensure complete isolation between production, test, and dev environments.

## Changes Made

### Workflow Fixes
- restart-pm2.yml: Add --namespace flags to pm2 save (lines 45, 69)
- manual-db-restore.yml: Add --namespace flag to pm2 save (line 95)

### Test Enhancements
- Add 6 new tests to validate ALL pm2 save commands have namespace flags
- Total test suite: 89 tests (all passing)
- Specific validation for each workflow file

### Documentation
- Create comprehensive PM2 Namespace Completion Report
- Update docs/README.md with PM2 Management section
- Cross-reference with ADR-063 and migration script

## Benefits
- Eliminates pm2 save race conditions between environments
- Enables safe parallel test and production deployments
- Simplifies process management with namespace isolation
- Prevents incidents like 2026-02-17 PM2 process kill

## Test Results
All 89 tests pass:
- 21 ecosystem config tests
- 38 workflow file tests
- 6 pm2 save validation tests
- 15 migration script tests
- 15 documentation tests
- 3 end-to-end consistency tests

Verified in dev container with vitest.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-18 22:25:56 -08:00

5.7 KiB

Flyer Crawler Documentation

Welcome to the Flyer Crawler documentation. This guide will help you navigate the various documentation resources available.

Documentation Structure

🚀 Getting Started

New to the project? Start here:

🏗️ Architecture

Understand how the system works:

💻 Development

Day-to-day development guides:

🔧 Operations

Production operations and deployment:

PM2 Management:

Incident Reports:

NGINX Reference Configs (in repository root):

  • etc-nginx-sites-available-flyer-crawler.projectium.com - Production server config
  • etc-nginx-sites-available-flyer-crawler-test-projectium-com.txt - Test server config

🛠️ Tools

External tool configuration:

🤖 AI Agents

Working with Claude Code subagents:

AI-Optimized References (token-efficient quick refs):

📐 Architecture Decision Records (ADRs)

Design decisions and rationale:

  • ADR Index - Complete list of all ADRs
  • 54+ ADRs covering patterns, conventions, and technical decisions

📦 Archive

Historical and completed documentation:

Documentation Conventions

  • File Names: Use SCREAMING_SNAKE_CASE for human-readable docs (e.g., INSTALL.md)
  • Links: Use relative paths from the document's location
  • Code Blocks: Always specify language for syntax highlighting
  • Tables: Use markdown tables for structured data
  • Cross-References: Link to ADRs and other docs for detailed explanations

Contributing to Documentation

See CONTRIBUTING.md for guidelines on:

  • Writing clear, concise documentation
  • Updating docs when code changes
  • Creating new ADRs for significant decisions
  • Documenting new features and APIs

Need Help?

Documentation Maintenance

This documentation is actively maintained. If you find:

  • Broken links or outdated information
  • Missing documentation for features
  • Unclear or confusing sections

Please open an issue or submit a pull request with improvements.