Pőcze Bence
7945627708
Some checks failed
rvr-nextgen/pipeline/head There was a failure building this commit
30 lines
694 B
Bash
Executable File
30 lines
694 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOT_DIR=$(dirname $(readlink -f "$0"))/..
|
|
|
|
. ${ROOT_DIR}/.env
|
|
|
|
echo "Installing Composer packages..."
|
|
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
|
|
(cd ${ROOT_DIR} && composer install --no-dev)
|
|
else
|
|
(cd ${ROOT_DIR} && composer install --dev)
|
|
fi
|
|
|
|
echo "Installing NPM packages..."
|
|
(cd ${ROOT_DIR}/multi && npm install)
|
|
|
|
echo "Installing Yarn packages..."
|
|
(cd ${ROOT_DIR}/public/static && yarn install)
|
|
|
|
echo "Migrating DB..."
|
|
(cd ${ROOT_DIR} && ./rvr db:migrate)
|
|
|
|
if [ -z "${DEV}" ] || [ "${DEV}" -eq "0" ]; then
|
|
echo "Minifying JS, CSS and SVG files..."
|
|
${ROOT_DIR}/scripts/minify.sh
|
|
|
|
echo "Linking view files..."
|
|
(cd ${ROOT_DIR} && ./rvr view:link)
|
|
fi
|