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:
		@@ -20,9 +20,11 @@ if [ -f /application/.symfony-preinit ]; then
 | 
			
		||||
    sh /application/.symfony-preinit
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Call on composer
 | 
			
		||||
echo "  -> Installing dependencies using composer..."
 | 
			
		||||
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
 | 
			
		||||
# Call on composer if no vendor dir
 | 
			
		||||
if [ ! -d /application/vendor ]; then
 | 
			
		||||
    echo "  -> Installing dependencies using composer..."
 | 
			
		||||
    /usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Call post-init script
 | 
			
		||||
if [ -f /application/.symfony-init ]; then
 | 
			
		||||
@@ -33,27 +35,10 @@ fi
 | 
			
		||||
echo "  -> Setting up directories..."
 | 
			
		||||
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..."
 | 
			
		||||
    composer symfony:dump-env prod -q
 | 
			
		||||
    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 /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 "  -> Compiling .env for prodution..."
 | 
			
		||||
composer symfony:dump-env prod -q
 | 
			
		||||
echo "  -> Clearing cache..."
 | 
			
		||||
bin/console cache:clear --env=prod -q
 | 
			
		||||
 | 
			
		||||
echo "  -> Testing environment..."
 | 
			
		||||
if ! bin/console about -q; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user