Tested with Symfony 7 project

This commit is contained in:
2024-02-06 01:00:58 +01:00
parent 7d760c25e3
commit 87e74c5814
7 changed files with 107 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#!/bin/sh
if [ -f /application/.nginx-site.conf ]; then
echo " -- Installing nginx website config..."
cp -F /application/.nginx-site.conf /etc/nginx/sites-enabled/default.conf
echo " -> Installing custom nginx website config..."
cp -F /application/.nginx-site.conf /etc/nginx/http.d/default.conf
fi
# scripts at level 00 should not end the framework setup

View File

@ -4,6 +4,22 @@ if [ ! -f /application/symfony.lock ]; then
exit 1
fi
echo " == Detected symfony project."
echo " == Detected Symfony project"
cd /application
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress
echo " -> Installing dependencies using composer..."
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
if [ -f /application/.symfony-init ]; then
echo " -> Running container-provided .symfony-init script"
sh /application/.symfony-init
fi
echo " -> Testing environment..."
if bin/console &>/dev/null; then
echo " ++ Successful"
else
echo " !! Failed"
fi
exit 0

View File

@ -6,4 +6,7 @@ fi
echo " == Detected composer project."
cd /application
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress
echo " -> Installing dependencies using composer..."
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
exit 0