fix: init problems
This commit is contained in:
@@ -65,8 +65,9 @@ nginx -t || die "nginx config test failed after install"
|
|||||||
# -------- Laravel cache clears (best-effort) --------
|
# -------- Laravel cache clears (best-effort) --------
|
||||||
if [ -f "$APP_DIR/artisan" ]; then
|
if [ -f "$APP_DIR/artisan" ]; then
|
||||||
log "Clearing Laravel caches"
|
log "Clearing Laravel caches"
|
||||||
( cd "$APP_DIR" && php artisan config:clear || log "config:clear failed (continuing)" )
|
# Use file cache driver during startup to avoid DB dependency
|
||||||
( cd "$APP_DIR" && php artisan cache:clear || log "cache:clear failed (continuing)" )
|
( cd "$APP_DIR" && CACHE_STORE=file php artisan config:clear || log "config:clear failed (continuing)" )
|
||||||
|
( cd "$APP_DIR" && CACHE_STORE=file php artisan cache:clear || log "cache:clear failed (continuing)" )
|
||||||
else
|
else
|
||||||
log "No Laravel app at $APP_DIR; skipping artisan"
|
log "No Laravel app at $APP_DIR; skipping artisan"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user