- 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)
48 lines
1.2 KiB
Markdown
48 lines
1.2 KiB
Markdown
# Quick Task 2 Summary - Update start.sh for Network Access
|
|
|
|
**Task:** Update start.sh for network access and port configuration
|
|
**Date:** 2026-03-13
|
|
**Status:** Complete
|
|
|
|
---
|
|
|
|
## Completed
|
|
|
|
### Task 1: Update start.sh with network and port options
|
|
|
|
- **Network access**: Dev and preview servers now use `--host` flag
|
|
- **Port configuration**:
|
|
- Default dev port: 5173
|
|
- Default preview port: 4173
|
|
- Can be changed via menu (option `p`)
|
|
- **Menu options added**:
|
|
- `dev` - Default dev server
|
|
- `dev:8080` - Dev server on port 8080 (kiosk mode)
|
|
- `dev:9090` - Dev server on port 9090 (remote mode)
|
|
- `p` - Change default ports
|
|
- **Connection info**: Shows local and network URLs when server starts
|
|
- **Command line usage**:
|
|
- `./start.sh dev`
|
|
- `./start.sh dev:8080`
|
|
- `./start.sh dev:9090`
|
|
- `./start.sh preview`
|
|
|
|
---
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
# Interactive menu
|
|
./start.sh
|
|
|
|
# Direct commands
|
|
./start.sh dev # Default port 5173
|
|
./start.sh dev:8080 # Port 8080 (kiosk)
|
|
./start.sh dev:9090 # Port 9090 (remote)
|
|
./start.sh preview # Preview on 4173
|
|
|
|
# Change ports via menu (option p)
|
|
```
|
|
|
|
**Network access:** Servers now bind to `0.0.0.0` and show both localhost and network IP addresses.
|