Commit 53f0ef55 by shameelaz

changes all

parent d9adfb42
......@@ -11,7 +11,7 @@
"php": "^7.1.3",
"awobaz/compoships": "^2.1",
"bensampo/laravel-enum": "^1.16",
"davejamesmiller/laravel-breadcrumbs": "5.x",
"diglactic/laravel-breadcrumbs": "5.*",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "^4.0",
"ixudra/curl": "^6.16",
......@@ -89,10 +89,5 @@
"@php artisan key:generate --ansi"
]
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/diglactic/laravel-breadcrumbs.git"
}
]
"repositories": []
}
\ No newline at end of file
......@@ -3,13 +3,13 @@ set -e
cd /var/www/html
find . -name "composer.lock"
rm -f composer.lock # if present, then rebuild
# Remove stale lockfile so dependencies are resolved fresh
rm -f composer.lock
# 1. Bersihkan cache supaya tiada rujukan lama yang bermasalah
# Clean Composer cache to avoid stale VCS references
echo "Cleaning Composer cache..."
rm -rf /root/.cache/composer/vcs/*
composer clear-cache
composer clear-cache 2>/dev/null || true
# Set permissions
find . -type d -exec chmod 775 {} \;
......@@ -17,17 +17,20 @@ find . -type f -exec chmod 664 {} \;
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache
composer config --global github-oauth.github.com "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"
# 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
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --prefer-dist --ignore-platform-reqs || {
echo "ERROR: composer install failed. Cannot start application."
exit 1
}
fi
# Ensure symlinks exist
php artisan storage:link
php artisan laravolt:link-assets
# Ensure symlinks exist (only if vendor is present)
if [ -d "vendor" ]; then
php artisan storage:link 2>/dev/null || true
php artisan laravolt:link-assets 2>/dev/null || true
fi
# 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