- CatalogModule: VIN-less PL24 catalog browser (brands, models, categories, parts) - Supports P5 Modern (REST) and P4 Legacy (Ford, PSA) catalog architectures - Ford variant selector (model-year/engine/gearbox), PSA variant selector (body/engine/gearbox) - New API endpoints: ford-config, psa-bodies, psa-engines, psa-gearboxes, brands/:name/catalogs - Shared vehicles: vehicles table decoupled from users via userVehicles junction table - PL24 Ford Legacy service: comprehensive HTML-scraping for Ford/PSA/Hyundai/Kia/Nissan/Opel/Volvo - PL24 types and service updated for P4 Legacy brand support - Categories/parts service updated for dual FK (vehicleId + catalogVehicleId) pattern - Catalog browser frontend routes and components - docs/INDEX.md: updated with all new endpoints, components, hooks, routes (2026-03-02) - docs/pl24-catalog/: per-brand catalog exploration docs - scripts/migration-shared-vehicles.sql, pl24-catalog-explorer.js, posthog-dashboards.sh Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: "sase-api",
|
|
cwd: "./apps/api",
|
|
script: "node",
|
|
args: "--enable-source-maps dist/main.js",
|
|
exec_mode: "fork",
|
|
env: {
|
|
NODE_ENV: "production",
|
|
PORT: 4000,
|
|
OTEL_ENABLED: "true",
|
|
OTEL_SERVICE_NAME: "sase-api",
|
|
},
|
|
max_memory_restart: "512M",
|
|
error_file: "../../logs/api-error.log",
|
|
out_file: "../../logs/api-out.log",
|
|
merge_logs: true,
|
|
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
|
|
},
|
|
{
|
|
name: "sase-web",
|
|
cwd: "./apps/web",
|
|
script: "pnpm",
|
|
args: "dev",
|
|
exec_mode: "fork",
|
|
env: {
|
|
NODE_ENV: "development",
|
|
PORT: 3000,
|
|
},
|
|
max_memory_restart: "512M",
|
|
error_file: "../../logs/web-error.log",
|
|
out_file: "../../logs/web-out.log",
|
|
merge_logs: true,
|
|
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
|
|
},
|
|
{
|
|
name: "sase-worker",
|
|
cwd: "./apps/api",
|
|
script: "dist/worker.js",
|
|
instances: 1,
|
|
exec_mode: "fork",
|
|
env: {
|
|
NODE_ENV: "production",
|
|
OTEL_ENABLED: "true",
|
|
OTEL_SERVICE_NAME: "sase-worker",
|
|
},
|
|
max_memory_restart: "256M",
|
|
error_file: "../../logs/worker-error.log",
|
|
out_file: "../../logs/worker-out.log",
|
|
merge_logs: true,
|
|
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
|
|
},
|
|
],
|
|
};
|