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

48c0cd5b2a broke `d/boot_dev` when used
with `--init` because `rake db:migrate` will fail as it requires `bundle
install` to run first
This commit is contained in:
Alan Guo Xiang Tan 2023-11-22 16:08:28 +08:00 committed by GitHub
parent 48f3c638cc
commit 39aa70d7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -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