Improved framework logic
Some checks failed
dockerbuild / Build docker image (push) Failing after 1m33s

This commit is contained in:
2024-02-06 01:31:34 +01:00
parent 966cb698f8
commit ec4dc0727a
4 changed files with 18 additions and 6 deletions

View File

@ -17,6 +17,7 @@ fi
# run framework setups
if [ -d /scripts/frameworks ]; then
cd /application
echo "[-] Calling framework setup scripts..."
for filename in /scripts/frameworks/*.sh; do
sh "$filename" && break

View File

@ -4,8 +4,18 @@ if [ ! -f /application/symfony.lock ]; then
exit 1
fi
echo " == Detected Symfony project"
cd /application
if [ -d /application/config/bolt ]; then
echo " == Detected Symfony (Bolt) project"
VARIANT=bolt
else
echo " == Detected Symfony project"
VARIANT=vanilla
fi
if [ -f /application/.symfony-preinit ]; then
echo " -> Running container-provided .symfony-preinit script"
sh /application/.symfony-preinit
fi
echo " -> Installing dependencies using composer..."
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
@ -16,7 +26,7 @@ if [ -f /application/.symfony-init ]; then
fi
echo " -> Testing environment..."
if bin/console &>/dev/null; then
if bin/console about -q; then
echo " ++ Successful"
else
echo " !! Failed"

View File

@ -5,7 +5,6 @@ if [ ! -f /application/composer.json ]; then
fi
echo " == Detected composer project."
cd /application
echo " -> Installing dependencies using composer..."
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0