setting php dalam docker
This commit is contained in:
@@ -53,6 +53,10 @@ if [ "${APP_ENV}" != "production" ] && [ ! -d /var/www/vendor ]; then
|
||||
--prefer-dist
|
||||
fi
|
||||
|
||||
# ── 2b. Fix storage permissions (penting untuk named volume di production) ────
|
||||
chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache 2>/dev/null || true
|
||||
chmod -R 775 /var/www/storage /var/www/bootstrap/cache 2>/dev/null || true
|
||||
|
||||
# ── 3. Generate APP_KEY jika kosong ───────────────────────────────────────────
|
||||
if [ -z "${APP_KEY}" ] || [ "${APP_KEY}" = "" ]; then
|
||||
echo "🔑 Menjana APP_KEY..."
|
||||
|
||||
Reference in New Issue
Block a user