mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-25 12:46:44 +00:00
Use PORT env var to customize script/develop port (#502)
This commit is contained in:
parent
9261c2c24e
commit
b7b4b5beba
@ -1,6 +1,10 @@
|
|||||||
# Stop on errors
|
# Stop on errors
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$PORT" ]; then
|
||||||
|
PORT=5001
|
||||||
|
fi
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
@ -11,6 +15,6 @@ trap "kill 0" EXIT
|
|||||||
# Run tsc once as rollup expects those files
|
# Run tsc once as rollup expects those files
|
||||||
npm exec -- tsc || true
|
npm exec -- tsc || true
|
||||||
|
|
||||||
npm exec -- serve -p 5001 &
|
npm exec -- serve -p "$PORT" &
|
||||||
npm exec -- tsc --watch &
|
npm exec -- tsc --watch &
|
||||||
npm exec -- rollup -c --watch
|
npm exec -- rollup -c --watch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user