This commit is contained in:
bence committed 2020-06-01 21:56:57 +02:00
1 parent f7d37b8513
commit a82b27cb90
6 files changed
+21 -3

No files matched your search

+3 -2
View File
@@ -9,13 +9,14 @@ if [ -f ${ROOT_DIR}/installed ]; then
exit 1
fi
echo "Installing MapGuesser DB..."
echo "Installing Yarn packages..."
(cd ${ROOT_DIR}/public/static && yarn install)
echo "Installing MapGuesser DB..."
mysql --host=${DB_HOST} --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} < ${ROOT_DIR}/db/mapguesser.sql
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Minifying JS, CSS and SVG files..."
${ROOT_DIR}/scripts/minify.sh
fi
+3 -1
View File
@@ -7,8 +7,10 @@ ROOT_DIR=$(dirname $(readlink -f "$0"))/..
echo "Installing Composer packages..."
(cd ${ROOT_DIR} && composer install)
echo "Installing Yarn packages..."
(cd ${ROOT_DIR}/public/static && yarn install)
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
echo "Minifying JS, CSS and SVG files..."
${ROOT_DIR}/scripts/minify.sh
fi