Commit 38d4e264 by shameelaz

revert

parent b798b075
#!/bin/bash #!/bin/bash
cd /var/www/html cd /var/www/html
echo "Starting Entrypoint..." # Set permissions
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache
# Composer install with Verbose output # Composer install with platform requirements ignored
if [ ! -f "vendor/autoload.php" ]; then if [ ! -d "vendor" ]; then
echo "Vendor folder missing. Running Composer..." echo "Installing Composer dependencies..."
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --prefer-dist --ignore-platform-reqs -vvv COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --prefer-dist --ignore-platform-reqs
if [ $? -ne 0 ]; then
echo "COMPOSER FAILED. Keeping container alive for debugging..."
tail -f /dev/null
fi
fi fi
# Run Artisan # Ensure symlinks exist
php artisan storage:link php artisan storage:link
php artisan laravolt:link-assets php artisan laravolt:link-assets
# Start Apache # Start Apache in the foreground
exec apache2-foreground exec apache2-foreground
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment