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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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