Tweaked symfony framework support
All checks were successful
dockerbuild / Build docker image (push) Successful in 1m37s
All checks were successful
dockerbuild / Build docker image (push) Successful in 1m37s
This commit is contained in:
parent
fadcb3556b
commit
aeb6c4f48d
@ -20,9 +20,11 @@ if [ -f /application/.symfony-preinit ]; then
|
|||||||
sh /application/.symfony-preinit
|
sh /application/.symfony-preinit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Call on composer
|
# Call on composer if no vendor dir
|
||||||
|
if [ ! -d /application/vendor ]; then
|
||||||
echo " -> Installing dependencies using composer..."
|
echo " -> Installing dependencies using composer..."
|
||||||
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
|
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Call post-init script
|
# Call post-init script
|
||||||
if [ -f /application/.symfony-init ]; then
|
if [ -f /application/.symfony-init ]; then
|
||||||
@ -33,27 +35,10 @@ fi
|
|||||||
echo " -> Setting up directories..."
|
echo " -> Setting up directories..."
|
||||||
test -d /application/var/cache/prod || ( mkdir -p /application/var/cache/prod && chmod a+rwx /application/var/cache/prod )
|
test -d /application/var/cache/prod || ( mkdir -p /application/var/cache/prod && chmod a+rwx /application/var/cache/prod )
|
||||||
|
|
||||||
# Do some variant-specific setup
|
|
||||||
case "$VARIANT" in
|
|
||||||
"vanilla")
|
|
||||||
echo " -> Compiling .env for prodution..."
|
echo " -> Compiling .env for prodution..."
|
||||||
composer symfony:dump-env prod -q
|
composer symfony:dump-env prod -q
|
||||||
echo " -> Clearing cache..."
|
echo " -> Clearing cache..."
|
||||||
bin/console cache:clear --env=prod -q
|
bin/console cache:clear --env=prod -q
|
||||||
;;
|
|
||||||
"bolt")
|
|
||||||
echo " -> Setting up BoltCMS directories..."
|
|
||||||
# we get a warning about this
|
|
||||||
chmod a+rwx /application/config
|
|
||||||
# we don't want to get errors from these
|
|
||||||
chmod -R a+rwx /application/var
|
|
||||||
chmod -R a+rwx /application/var/data
|
|
||||||
chmod -R a+rwx /application/var/cache
|
|
||||||
chmod -R a+rwx /application/var/cache/prod
|
|
||||||
chmod -R a+rwx /application/var/log
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
echo " -> Testing environment..."
|
echo " -> Testing environment..."
|
||||||
if ! bin/console about -q; then
|
if ! bin/console about -q; then
|
||||||
|
Loading…
Reference in New Issue
Block a user