esphome / dashboard

ESPHome dashboard and ESPHome Web
https://web.esphome.io
MIT License
75 stars 56 forks source link

Use PORT env var to customize script/develop_web port #609

Closed pzich closed 6 months ago

pzich commented 6 months ago

This allows the port used by npm run develop_web to be customized by setting the PORT env var, e.g:

> PORT=5432 npm run develop_web

   ┌────────────────────────────────────────┐
   │                                        │
   │   Serving!                             │
   │                                        │
   │   - Local:    http://localhost:5432    │
   │   - Network:  http://10.0.0.10:5432    │
   │                                        │
   │   Copied local address to clipboard!   │
   │                                        │
   └────────────────────────────────────────┘

Otherwise defaults to the current 5006