Samara-main deploy-apps

Build and restart Astro web apps (wardrobe, gallery). MUST be run after editing any file in apps/. Use after modifying wardrobe or gallery source, or when the running server seems stale. Trigger words: deploy apps, rebuild wardrobe, rebuild gallery, build apps, restart wardrobe.

install
source · Clone the upstream repo
git clone https://github.com/claudeaceae/samara-main
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/claudeaceae/samara-main "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/deploy-apps" ~/.claude/skills/claudeaceae-samara-main-deploy-apps && rm -rf "$T"
manifest: .claude/skills/deploy-apps/SKILL.md
source content

Deploy Apps

Build and restart the Astro SSR web apps (wardrobe, gallery).

WHEN TO USE THIS

After ANY edit to files in

apps/wardrobe/
or
apps/gallery/
.

This is separate from

update-samara
which only rebuilds the Swift Samara.app. Astro apps have their own build step. Forgetting this causes the running server to serve stale code from the old
dist/
bundle — changes appear in source but have zero effect at runtime.

How to Deploy

All apps:

~/.claude-mind/system/bin/build-apps

Single app:

~/.claude-mind/system/bin/build-apps wardrobe
~/.claude-mind/system/bin/build-apps gallery

The script handles:

npm run build
→ kill old server process → restart.

Verification

After deploying, confirm the server is running with the new code:

# Check process is alive
pgrep -f "entry.mjs"

# For wardrobe — verify a recent change is in the built output
grep "your-change" apps/wardrobe/dist/server/pages/api/*.mjs