mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
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:
parent
d3e5251704
commit
6415bab455
@ -110,6 +110,9 @@ if [ "${initialize}" = "initialize" ]; then
|
|||||||
echo "Installing gems..."
|
echo "Installing gems..."
|
||||||
"${SCRIPTPATH}/bundle" install
|
"${SCRIPTPATH}/bundle" install
|
||||||
|
|
||||||
|
echo "Yarn install..."
|
||||||
|
"${SCRIPTPATH}/exec" yarn install --cwd app/assets/javascripts/discourse
|
||||||
|
|
||||||
echo "Migrating database..."
|
echo "Migrating database..."
|
||||||
"${SCRIPTPATH}/rake" db:migrate
|
"${SCRIPTPATH}/rake" db:migrate
|
||||||
RAILS_ENV=test "${SCRIPTPATH}/rake" db:migrate
|
RAILS_ENV=test "${SCRIPTPATH}/rake" db:migrate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user