diff --git a/lila-docker b/lila-docker index 6b89f766..7e93931b 100755 --- a/lila-docker +++ b/lila-docker @@ -6,7 +6,7 @@ run_setup() { docker compose build docker compose --profile utils build docker compose up -d - docker compose run --rm ui /lila/ui/build --debug + run_ui_build --update setup_bbppairings setup_database @@ -43,6 +43,10 @@ build_all_profiles() { COMPOSE_PROFILES=$(all_profiles) docker compose build } +run_ui_build() { + docker compose run --rm ui /lila/ui/build --clean --debug --split $@ +} + setup_database() { if [ "$SETUP_DATABASE" != "true" ]; then echo "Skipping database setup" @@ -190,7 +194,7 @@ case "$@" in docker compose restart lila ;; ui) - docker compose run --rm ui /lila/ui/build --debug --watch + run_ui_build --rebuild ;; "gitpod public") rust_cmd gitpod_public