mirror of
https://github.com/discourse/discourse.git
synced 2025-03-19 19:15:31 +08:00
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
This commit is contained in:
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user