webdev › letmepost (self-host sosyal paylaşım servisi) Google Cloud ücretsiz sunucusuna taşınsın.
NE ÇIKTI · 1 DOSYASunucu kuruldu ve panel dış adreste açıldı; giriş ekranı kanıt olarak çekildi.
letmepost self-host development
letmepost kendi sunucusunda barındırılan sürümünü worktree ve test veritabanıyla geliştirir.
KURULUM
hermes skills install well-known:https://skills.hamaratlabs.com/.well-known/skills/letmepost-selfhost-dev2 GERÇEK ÖRNEK
webdev › letmepost (self-host sosyal paylaşım servisi) Google Cloud ücretsiz sunucusuna taşınsın.
NE ÇIKTI · 1 DOSYASunucu kuruldu ve panel dış adreste açıldı; giriş ekranı kanıt olarak çekildi.
letmepost self-host'a YouTube (Shorts + normal video) platformu ekle.
webdevYouTube platformu ayrı dalda eklendi; tip kontrolü, lint ve testler yeşil (706 geçti, 67'si yeni), build temiz; canlıya almadan önce DB migrasyonu gerektiği raporlandı.
KAYNAK VE LİSANS
DEĞERLENDİRME
Sayılar ajan kayıtlarından gelir. Puanlama henüz yok.
SÜRÜM
YORUMLAR
Bu skill hakkındaki yorumlar ve puanlar burada görünecek. Bölüm henüz açılmadı.
AJAN AÇIKLAMASI Use when editing letmepost self-host. Worktree, test DB.
Repo <proje-klasoru>/letmepost-selfhost, a local branch (upstream letmepost + local patches). Work in a worktree under .worktrees/<name>; never touch the running instance (dashboard <dashboard-port>, API <api-port>, worker), its apps/api/.env or its DATABASE_URL.
node_modules: APFS-clone from the main checkout: cp -cR ../../node_modules ./node_modules and the same for every apps/*/node_modules, packages/*/node_modules (pnpm symlinks are relative, so clones resolve inside the worktree). No pnpm install needed.apps/api/.env; keep it that way (vitest + server load .env via dotenv).@letmepost/schemas and apps/api/src/routes/openapi.json → run via pnpm turbo run test --filter=@letmepost/api (or node scripts/copy-openapi.mjs once, then npx vitest run).initdb -D <scratch>/pgdata -U lmp --auth=trust, start with LC_ALL=en_US.UTF-8 (else "postmaster became multithreaded"), unusual port (e.g. 58432), createdb lmp_..._test.redis-server --port 56379 --save '' --appendonly no --daemonize yes.DATABASE_URL + TEST_DATABASE_URL = scratch DB, REDIS_URL, BETTER_AUTH_SECRET, KEK_MASTER (CI values work). Many test files import app.ts, which needs DATABASE_URL at import.CORS_ORIGINS=<dashboard origin> (allowlist is only the local dashboard origin + CORS_ORIGINS) and PUBLIC_API_BASE_URL (OAuth redirect URIs use it, not BETTER_AUTH_URL).better-auth.session_token with CDP Network.setCookie. framer-motion pages stay blurred until Page.bringToFront.index.ts registration is NOT enough. Touch: schemas Platform, PLATFORM_STATE, TargetOptions; _shared/scopes.ts, _shared/dispatch.ts (preflight + publish), _shared/api-versions.ts, _shared/target-options.ts (options mapping for route + worker), routes/accounts.ts publicView, routes/posts.ts + queue/publish-processor.ts if async (ASYNC_STATUS_PLATFORMS), queue/tiktok-poll-processor.ts (platform-dispatching poller), dashboard lib/accounts.ts + platform-icons.tsx + globals.css --brand-*, sdk-ts types, hand-maintained docs/api-reference/openapi.json, docs page + docs.json nav + platform-credentials + environment, .env.example. DB platform enum already lists youtube/tiktok.
NEXT_PUBLIC_API_URL is baked at next build → rebuild after changing it. Auth cookies follow the configured base URL, so the old localhost panel stops working for auth after the switch.lmp.sh down: down runs redis-cli shutdown nosave and Redis has no persistence → delayed BullMQ jobs (refresh-token, billing) are lost. Stop only dashboard/worker/api via their pid files (pkill -P + kill), then lmp.sh up (background) skips the live infra..env are made only with the user's approval; if your agent runtime asks for approval, wait for it and do not look for another way around it. Never patch/read .env with tools that echo context lines.jq '.apiKey|test("^lmp_")', never print the key. A key file can silently hold a literal placeholder (***) after a bad copy.pnpm install --prod. Keep env in /etc/<app>/api.env and symlink it into each release.DISABLE_SIGNUP=true (auth.ts) plus a reverse-proxy 403.sudo, systemctl stop|restart|disable) need the user's approval, including when run through gcloud compute ssh --command or a copied script.caddy validate as root creates log files root-owned → chown /var/log/caddy afterwards or reload fails. Global options block must be the first non-comment line (no blank line before {).--screenshot; use raw CDP via Node (--remote-debugging-port, wait ~7 s real time, Page.captureScreenshot).AWS_REGION=auto, path-style automatic via S3_ENDPOINT), public base = an R2 custom domain. SDK default CRC32 checksums + lib-storage multipart work on R2 unchanged; letmepost never presigns.media table must measure a baseline (table is bucket-wide; scratch DBs keep e2e rows)..env.bak* in .gitignore (also .git/info/exclude).queue/maintenance-schedules.ts and are re-registered on every reconnect; a marker key tells a wipe from a blip. Empty-but-reachable Redis + guard configured → uploads 503 media.guard_pending until the guard has measured once; log a distinct error after 3 guard failures in a row.tests/support/fake-s3.ts (real S3Client with an in-memory requestHandler) + test setters for the client and max upload size. Feed the request body in small chunks with setImmediate between them (Readable.toWeb + duplex: "half"); one big Buffer trips busboy's limit before the S3 upload starts and the abort path never runs.node --import ./instrument.mjs dist/queue/worker.js from the main checkout; a worktree smoke worker is node dist/queue/worker.js - kill only by your own pid file.pg_ctl -o; put port, listen_addresses and unix_socket_directories=<scratch> in postgresql.conf instead.set -euo pipefail: grep for an absent key exits 1 and kills the script silently; wrap as { grep … || true; }.redirect: "manual".guardedFetch blocks private IPs and has a 30 s total timeout - read own media-store URLs directly (Range) instead.drizzle-kit generate --name x works offline; drizzle.config does not load .env, so db:migrate needs DATABASE_URL exported; pnpm --filter @letmepost/api migrate (dist/db/migrate.js) does load .env.python3 docs/.scripts/validate.py.PAKETTEKİ DOSYALAR
WEB VE GELİŞTİRME


browser_exec ekran görüntüleri zaman aşımına uğradığında standart kütüphaneyle CDP QA yapar.


WingWire UX analizi yapar ve hızlı render edilen HTML maketler üretir.