Fixes, BoltCMS
All checks were successful
dockerbuild / Build docker image (push) Successful in 1m49s

This commit is contained in:
2024-02-07 13:37:27 +01:00
parent 3b6ead62b6
commit 5392cca13b
6 changed files with 56 additions and 6 deletions

View File

@ -7,10 +7,10 @@ fi
# Determine if this is a specific variant of Symfny
if [ -d /application/config/bolt ]; then
echo " => Detected Symfony (Bolt) project"
echo " => Detected Symfony (Bolt) project"
VARIANT=bolt
else
echo " => Detected Symfony project"
echo " => Detected Symfony project"
VARIANT=vanilla
fi
@ -41,11 +41,24 @@ case "$VARIANT" in
echo " -> Clearing cache..."
bin/console cache:clear --env=prod -q
;;
"bolt")
echo " -> Setting up BoltCMS directories..."
# we get a warning about this
chmod a+rwx /bolt/config
# we don't want to get errors from these
chmod -R a+rwx /bolt/var
chmod -R a+rwx /bolt/var/data
chmod -R a+rwx /bolt/var/cache
chmod -R a+rwx /bolt/var/cache/prod
chmod -R a+rwx /bolt/var/log
echo " -> Configuring database..."
# TODO: Apply schema and migrations
;;
esac
echo " -> Testing environment..."
if ! bin/console about -q; then
echo " >> Failed"
echo " ** Failed **"
fi
exit 0

View File

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

View File

@ -1,3 +1,3 @@
#!/bin/sh
echo " ** Sorry, no framework detected."
echo " ** Sorry, no framework detected **"