MAPG-101 place mapg migrate to install and update scripts

This commit is contained in:
Bence Pőcze 2020-06-02 23:42:18 +02:00
parent 83a027c1bb
commit af2375133a
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@ echo "Installing Yarn packages..."
echo "Installing MapGuesser DB..."
mysql --host=${DB_HOST} --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} < ${ROOT_DIR}/db/mapguesser.sql
echo "Migrating DB..."
(cd ${ROOT_DIR} && ./mapg migrate)
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Minifying JS, CSS and SVG files..."
${ROOT_DIR}/scripts/minify.sh

View File

@ -10,6 +10,9 @@ echo "Installing Composer packages..."
echo "Installing Yarn packages..."
(cd ${ROOT_DIR}/public/static && yarn install)
echo "Migrating DB..."
(cd ${ROOT_DIR} && ./mapg migrate)
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Minifying JS, CSS and SVG files..."
${ROOT_DIR}/scripts/minify.sh