chore(dev): run mobile uni through portless

This commit is contained in:
2026-07-09 14:52:34 +08:00
parent 1c47e250c4
commit 54b2b0dbbc
5 changed files with 40 additions and 27 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ if [[ ! -d node_modules ]]; then
fi
if [[ "${PORTLESS:-1}" != "0" ]] && command -v portless >/dev/null 2>&1; then
exec portless run --name wygj-admin bash -lc 'npm run dev -- --host "${HOST:-127.0.0.1}" --port "$PORT" --strictPort'
exec portless run --name wygj-admin --force bash -lc 'npm run dev -- --host "${HOST:-127.0.0.1}" --port "$PORT" --strictPort'
fi
if [[ "${PORTLESS:-1}" != "0" ]]; then