Skip to content

A platform for community discussion. Free, open, simple.

FIX: Run bundle install before migration in `d/boot_dev` (#24509)

Alan Guo Xiang Tan39aa70d7cbb3
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
-