MAPG-89 install and update sh scripts to link views in non-DEV mode

This commit is contained in:
Bence Pőcze 2020-06-27 00:22:42 +02:00
parent c2323c4c89
commit c8a49396c2
Signed by: bence
GPG Key ID: AA52B11A3269D1C1
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ echo "Migrating DB..."
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Minifying JS, CSS and SVG files..." echo "Minifying JS, CSS and SVG files..."
${ROOT_DIR}/scripts/minify.sh ${ROOT_DIR}/scripts/minify.sh
echo "Linking view files..."
(cd ${ROOT_DIR} && ./mapg view:link)
fi fi
touch ${ROOT_DIR}/installed touch ${ROOT_DIR}/installed

View File

@ -20,4 +20,7 @@ echo "Migrating DB..."
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Minifying JS, CSS and SVG files..." echo "Minifying JS, CSS and SVG files..."
${ROOT_DIR}/scripts/minify.sh ${ROOT_DIR}/scripts/minify.sh
echo "Linking view files..."
(cd ${ROOT_DIR} && ./mapg view:link)
fi fi