Files
sp80/.planning/quick/2-update-start-sh-for-network-access-and-p/2-PLAN.md
admin e327ab9ac8 docs(quick-2): Update start.sh for network access and port config
- Dev/preview servers accessible from other machines (--host flag)
- Port configuration via menu or CLI args
- dev:8080 and dev:9090 shortcuts for kiosk/remote modes
- Shows connection info (local + network IP)
2026-03-13 11:05:59 +08:00

34 lines
876 B
Markdown

---
plan: 1
type: quick
files_modified:
- start.sh
---
<objective>
Update start.sh to support network access (--host flag) and custom port configuration for dev/preview servers
</objective>
<tasks>
<task>
<name>Update start.sh with network and port options</name>
<files>start.sh</files>
<action>
1. Update dev command to include --host flag for network access
2. Add port configuration (default 5173 for dev, 4173 for preview)
3. Add menu options for port selection
4. Show connection info after starting server (IP address, port)
</action>
<verify>grep -E "(host|port|--host)" start.sh | head -10</verify>
<done>start.sh updated with network access and port options</done>
</task>
</tasks>
<success_criteria>
- Dev server accessible from other machines
- Port can be customized via menu or arguments
- Connection info displayed when server starts
</success_criteria>