From 39aa70d7cbb356edc4d583348313e3ed264965d0 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 22 Nov 2023 16:08:28 +0800 Subject: [PATCH] FIX: Run bundle install before migration in `d/boot_dev` (#24509) 48c0cd5b2aae16830149c3982b525eb75e03e8dc broke `d/boot_dev` when used with `--init` because `rake db:migrate` will fail as it requires `bundle install` to run first --- bin/docker/boot_dev | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/docker/boot_dev b/bin/docker/boot_dev index 151241b71fe..9d4ffed5409 100755 --- a/bin/docker/boot_dev +++ b/bin/docker/boot_dev @@ -106,6 +106,12 @@ docker run -d \ --restart=always \ discourse/discourse_dev:release /sbin/boot +echo "Installing gems..." +"${SCRIPTPATH}/bundle" install + +echo "Yarn install..." +"${SCRIPTPATH}/exec" yarn install --cwd app/assets/javascripts/discourse + if [ "${initialize}" = "initialize" ]; then echo "Migrating database..." "${SCRIPTPATH}/rake" db:migrate @@ -115,9 +121,3 @@ if [ "${initialize}" = "initialize" ]; then "${SCRIPTPATH}/rake" admin:create fi -echo "Installing gems..." -"${SCRIPTPATH}/bundle" install - -echo "Yarn install..." -"${SCRIPTPATH}/exec" yarn install --cwd app/assets/javascripts/discourse -