a503fa9cbe
Restore the missing run-memind-adm-*-prod.sh entrypoints expected by 103 LaunchAgents so admin services can restart cleanly after reboot. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
490 B
Bash
Executable File
13 lines
490 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
export ADM_PORT="${ADM_PORT:-5174}"
|
|
export NODE_BIN="${NODE_BIN:-/opt/homebrew/opt/node@24/bin/node}"
|
|
export PATH="/opt/homebrew/opt/node@24/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:${PATH}"
|
|
cd "${ROOT}"
|
|
if [[ ! -d dist ]]; then
|
|
echo "dist/ missing; run npm run build first" >&2
|
|
exit 1
|
|
fi
|
|
exec "${NODE_BIN}" ./node_modules/vite/bin/vite.js preview --host 0.0.0.0 --port "${ADM_PORT}" --strictPort
|