mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Fix docker pio settings not applied (#2370)
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
# This files creates all directories used by esphome
|
||||
# ==============================================================================
|
||||
|
||||
PLATFORMIO_CORE_DIR=/data/cache/platformio
|
||||
pio_cache_base=/data/cache/platformio
|
||||
|
||||
mkdir -p "${PLATFORMIO_CORE_DIR}"
|
||||
mkdir -p "${pio_cache_base}"
|
||||
|
||||
@@ -22,7 +22,13 @@ if bashio::config.has_value 'relative_url'; then
|
||||
export ESPHOME_DASHBOARD_RELATIVE_URL=$(bashio::config 'relative_url')
|
||||
fi
|
||||
|
||||
export PLATFORMIO_CORE_DIR=/data/cache/platformio
|
||||
pio_cache_base=/data/cache/platformio
|
||||
# we can't set core_dir, because the settings file is stored in `core_dir/appstate.json`
|
||||
# setting `core_dir` would therefore prevent pio from accessing
|
||||
export PLATFORMIO_PLATFORMS_DIR="${pio_cache_base}/platforms"
|
||||
export PLATFORMIO_PACKAGES_DIR="${pio_cache_base}/packages"
|
||||
export PLATFORMIO_CACHE_DIR="${pio_cache_base}/cache"
|
||||
|
||||
export PLATFORMIO_GLOBALLIB_DIR=/piolibs
|
||||
|
||||
bashio::log.info "Starting ESPHome dashboard..."
|
||||
|
||||
Reference in New Issue
Block a user