* chore: delete orphaned Monitor-Upcycling config, status data and business-plan scripts The /projects/upcycling pages and businessPlan messages were removed earlier. Their config (upcycling-routes/-assets/-evidence), status data, the status helpers, the tests that only covered them, the three businessplan scripts and the i18n:businessplan script were referenced by nothing else. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * chore: delete unused ai-native-cms packages and nextjs-basic example Neither package was a pnpm workspace member, a dependency, a tsconfig path or imported anywhere; the lockfile has only the root importer, so it is unchanged. Drop the now-pointless examples/ ignore entries too. packages/saldo stays, so the packages/ ignores stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: archive retired deploy, hosting and CMS guides github-vercel-setup duplicated the secrets section of deployment.md under a Vercel name; hosting-migration-frauenfeld planned a move that is done; migration (Strapi) and the cms-solution and system-integration tombstones describe setups that no longer exist. Point deployment.md at its own secrets section instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD --------- Co-authored-by: Claude <noreply@anthropic.com>
7.6 KiB
created_date, last_modified_date, last_modified_summary
| created_date | last_modified_date | last_modified_summary |
|---|---|---|
| 2026-01-07 | 2026-07-04 | IT-Hilfe journey E2E (edit + withdraw); local run notes |
evig Commands Reference (SSOT)
Single Source of Truth for all package scripts and commands.
Quick Start Commands
pnpm run d # Start everything (databases + dev server)
pnpm run dev # Frontend only (port 3000)
pnpm run services:up # Start Docker services (db, meilisearch, listmonk)
pnpm run services:down # Stop Docker services
pnpm run setup-admins # Create admin users
Development Commands
pnpm run dev # Start Next.js dev server (port 3000)
Docker Services
pnpm run services:up # Start all services (db, meilisearch, listmonk)
pnpm run services:down # Stop all services
pnpm run db:up # Start main database only
pnpm run db:down # Stop main database
pnpm run setup # Start database and wait 5 seconds
pnpm run reset # Stop all, remove volumes, and reset
Build & Production
pnpm run build # Production build (Next.js + sitemap)
pnpm run start # Start production server
pnpm run typecheck # TypeScript validation (run before commits!)
pnpm run lint # ESLint check
pnpm run check:file-inputs # No file input mixes image + document types (Android hides the file browser)
Testing
pnpm run test # Vitest unit tests
pnpm run test:watch # Vitest watch mode
pnpm run test:coverage # Vitest with coverage
pnpm run test:e2e # Playwright E2E tests
pnpm run test:e2e:auth # Auth login smoke (needs AUTH_TEST_EMAIL/PASSWORD)
pnpm run test:e2e:inventory # Dual-persona feature inventory (user + admin)
pnpm run test:e2e:inventory:prod # Same, with prod health wait (CI / post-deploy)
pnpm run test:e2e:user-admin # Legacy quick smoke (subset)
pnpm run test:e2e:it-hilfe # IT-Hilfe hub/journey specs
pnpm run test:e2e:it-hilfe:journey # Dual-persona lifecycle + edit/withdraw (see E2E section)
pnpm run test:e2e:marketplace:journey # User sells, admin buys (Payrexx when configured)
pnpm run test:e2e:workshops:proposal:journey # User proposes, admin approve/reject
pnpm run test:e2e:timecards:journey # Staff submit + admin approve (TIME round-trip)
pnpm run test:e2e:intake:journey # Admin intake create → checklist → publish
pnpm run test:e2e:tasks:journey # Admin task create → complete
pnpm run test:e2e:protocols:journey # Admin protocol create → JSON import → finalize
pnpm run test:e2e:decisions:journey # Admin decision create → vote → close
pnpm run test:e2e:cms:journey # Admin blog draft → publish → public view
pnpm run test:e2e:it-hilfe:preferred:journey # Request with preferred techniker
pnpm run test:e2e:service:journey # User books repair, admin assigns techniker (dual-persona)
pnpm run test:e2e:ui # Playwright with UI
pnpm run test:all # Run all tests
Deployment
Production app: https://evig.orangecat.ch (Hetzner self-host). The retired host revampit.orangecat.ch 308-redirects here.
Public legacy domain revamp-it.ch is still the old Joomla/Apache site and is not the production app.
Automatic (push-to-deploy)
| Trigger | What happens |
|---|---|
git push origin main (local) |
No local deploy — the pre-push hook's background deploy is disabled (see .husky/pre-push). Manual fallback: pnpm run deploy:selfhost |
git push origin main (GitHub) |
Actions workflow .github/workflows/deploy-selfhost.yml runs lint + typecheck, then deploys if secrets are set |
Requires .env.selfhost.local locally (gitignored). Copy from a teammate or recreate from the prod /opt/evig/app/.env.
One-time GitHub secrets (Settings → Secrets → Actions) for CI deploy when you push from anywhere:
| Secret | Value |
|---|---|
HETZNER_SSH_PRIVATE_KEY |
Private key for ubuntu@167.233.22.31 |
SELFHOST_ENV |
Full contents of .env.selfhost.local |
AUTH_TEST_USER_EMAIL |
Login address of the non-admin E2E account — post-deploy + CI inventory. No default; the run fails naming this secret if unset |
AUTH_TEST_USER_PASSWORD |
Password for that non-admin E2E account |
AUTH_TEST_ADMIN_EMAIL |
Login address of the staff (admin) E2E account — same jobs, same rule |
AUTH_TEST_ADMIN_PASSWORD |
Password for that staff E2E account |
AUTH_TEST_EMAIL / AUTH_TEST_PASSWORD |
Legacy single-account auth smoke (test:e2e:auth) |
PLAYWRIGHT_CHANNEL |
chrome or msedge when bundled Chromium cannot install (e.g. Ubuntu 26) |
Local marketplace journey (no prod secrets):
pnpm run e2e:seed
PLAYWRIGHT_CHANNEL=chrome \
AUTH_TEST_USER_EMAIL=e2e-user@revampit.test AUTH_TEST_USER_PASSWORD='E2EUser123!' \
AUTH_TEST_ADMIN_EMAIL=e2e-admin@revampit.test AUTH_TEST_ADMIN_PASSWORD='E2EAdmin123!' \
pnpm run test:e2e:marketplace:journey
Local IT-Hilfe dual-persona journey (owner edit + withdraw offer + full lifecycle):
pnpm run e2e:seed
PLAYWRIGHT_CHANNEL=chrome PLAYWRIGHT_BASE_URL=http://localhost:3001 \
AUTH_TEST_USER_EMAIL=e2e-user@revampit.test AUTH_TEST_USER_PASSWORD='E2EUser123!' \
AUTH_TEST_ADMIN_EMAIL=e2e-admin@revampit.test AUTH_TEST_ADMIN_PASSWORD='E2EAdmin123!' \
pnpm run test:e2e:it-hilfe:journey
Use pnpm exec next dev --port 3001 --webpack locally if Turbopack returns 404 on /api/auth/*. Restart the dev server if create-request rate limit (Zu viele Anfragen) trips during repeated runs.
Apply migration 114_listing_questions.sql before first local run (pnpm run db:migrate or direct psql). Prod: applied on Hetzner 2026-07-04 (see docs/FEATURE_INVENTORY.md → Marketplace UX rollout tracker).
After each successful deploy, Dual-persona inventory smoke runs automatically when the two password secrets are set (routes + IT-Hilfe + marketplace + workshops + service journeys). Manual re-run: pnpm run test:e2e:inventory:prod.
Payrexx go-live checklist: docs/operations/PAYREXX_SETUP.md · config SSOT: src/config/payrexx.ts.
Manual
pnpm run deploy # same as deploy:selfhost
pnpm run deploy:selfhost # build standalone → release backup → activate → /api/health gate → rollback on failure
pnpm run ship # quality gate (typecheck, lint, build, tests)
pnpm run db:migrate # apply unrecorded scripts/db/migrations/*.sql (DATABASE_URL / PG* env)
Operational checks:
curl https://evig.orangecat.ch/api/health # dependency health
curl https://evig.orangecat.ch/api/version # deployed version / git SHA
Production dependencies on the Hetzner box:
| Service | Runtime | Binding | Notes |
|---|---|---|---|
evig-app |
systemd | 127.0.0.1:4004 behind Caddy |
/opt/evig/app, restarted by scripts/selfhost-deploy-evig.sh |
revampit_meilisearch |
Docker | 127.0.0.1:7700 |
Required for healthy /api/health; master key is stored only in /opt/evig/app/.env |
The deploy script copies the server-local .env and launch.sh into each release before activation. Do not put those runtime secrets in git.
Database
pnpm run db:down # Stop the local Postgres container (db:up and db:migrate are listed above)
Production Docker
pnpm run prod:build # Build production Docker image
pnpm run prod:up # Start production containers
pnpm run prod:down # Stop production containers
Last Updated: 2026-09-04
Last Modified Summary: Post-deploy dual-persona inventory in GitHub Actions; E2E secret docs.
Source: package.json