Skip to content

Commit

Permalink
ui command refactor - always use --clean and --split, and `--upda…
Browse files Browse the repository at this point in the history
…te` flag during setup
  • Loading branch information
fitztrev committed Mar 18, 2024
1 parent e79a37c commit ee2e37f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ee2e37f

Please sign in to comment.