Three bugs found deploying a fresh clone to seedproject.com, each fatal to the documented "spin up a new site" flow: - .gitignore: the unanchored `public/` pattern (meant for the root build output) also ignored api/public/ (the framework's front controller, controllers, models, views) and app/public/ (theme static assets: fonts, avatar placeholder). Neither was ever committed, so every fresh clone 500'd on all /api routes and 404'd on theme assets. Anchor the pattern to /public/ and commit both directories. - api/install/dump.sql: stray `CREATE DATABASE ochenta80_db123` (SQLyog export artifact) aborted `php console app:install` for any non-privileged DB user. The schema must import into whatever database the installer connects to. - PluginManager::boot() queries sp_plugins on every request, but no shipped schema creates it — even a successful install 500'd on every endpoint. Add migration 002_create_sp_plugins.sql matching the columns PluginManager reads/writes. Also empty api/system/errors.json, which shipped with stale error logs from an unrelated project. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C3JqxTe7TKaR7xufcMr7Ds
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
# ============================================================================
|
|
# SeedProject base — cloneable Astro + PHP foundation
|
|
# Tracked: engine code (app/src, api framework, content-pipeline, astroagent).
|
|
# Ignored: secrets, dependencies, build output, and per-site runtime state.
|
|
# ============================================================================
|
|
|
|
# --- secrets (NEVER commit) ---
|
|
**/.env
|
|
api/config.php
|
|
api/system/.installed
|
|
|
|
# --- dependencies (installed per site via scripts/new-site.sh) ---
|
|
node_modules/
|
|
api/vendor/
|
|
|
|
# --- build output (regenerable) ---
|
|
# NOTE: anchored to the repo root — app/public/ (theme static assets) and
|
|
# api/public/ (framework front controller) are source, not build output.
|
|
app/dist/
|
|
app/.astro/
|
|
/public/
|
|
/public-preview/
|
|
|
|
# --- logs ---
|
|
*.log
|
|
|
|
# --- per-site runtime state (regenerated; dirs kept via .gitkeep) ---
|
|
content-pipeline/logs/*
|
|
!content-pipeline/logs/.gitkeep
|
|
content-pipeline/drafts/*
|
|
!content-pipeline/drafts/.gitkeep
|
|
content-pipeline/state/*
|
|
!content-pipeline/state/.gitkeep
|
|
content-pipeline/calendar.json
|
|
content-pipeline/messages.json
|
|
content-pipeline/news-queue.json
|
|
content-pipeline/news-scan.json
|
|
content-pipeline/research-scan.json
|
|
|
|
# --- astroagent runtime workspaces ---
|
|
.astroagent/jobs/
|
|
.astroagent/work/
|
|
app/.astroagent/jobs/
|
|
app/.astroagent/work/
|