Commit 38d4e264 by shameelaz

revert

parent b798b075
#!/bin/bash
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
if [ ! -f "vendor/autoload.php" ]; then
echo "Vendor folder missing. Running Composer..."
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --prefer-dist --ignore-platform-reqs -vvv
if [ $? -ne 0 ]; then
echo "COMPOSER FAILED. Keeping container alive for debugging..."
tail -f /dev/null
fi
# Composer install with platform requirements ignored
if [ ! -d "vendor" ]; then
echo "Installing Composer dependencies..."
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --prefer-dist --ignore-platform-reqs
fi
# Run Artisan
# Ensure symlinks exist
php artisan storage:link
php artisan laravolt:link-assets
# Start Apache
# Start Apache in the 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