mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
committed by
GitHub
parent
48f3c638cc
commit
39aa70d7cb
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user