DEV: Run yarn install before db migrations in d/boot_dev (#20866)

Yarn dependencies need to be present before booting Rails
This commit is contained in:
dsims
2023-04-05 13:49:50 -04:00
committed by GitHub
parent d3e5251704
commit 6415bab455

View File

@ -110,6 +110,9 @@ if [ "${initialize}" = "initialize" ]; then
echo "Installing gems..."
"${SCRIPTPATH}/bundle" install
echo "Yarn install..."
"${SCRIPTPATH}/exec" yarn install --cwd app/assets/javascripts/discourse
echo "Migrating database..."
"${SCRIPTPATH}/rake" db:migrate
RAILS_ENV=test "${SCRIPTPATH}/rake" db:migrate