diff --git a/CLAUDE.md b/CLAUDE.md index 4a96eb7..dc7dcb7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,37 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co Libra Law Firm is a bilingual (Arabic/English) web platform for managing client consultations, appointments, and case tracking. It serves as both a public-facing website and an internal management tool. -**Domain:** libra.ps +**Domain:** libra.adv.ps (production), libra.test (local) + +## Production Environment + +- **Server:** Rocky Linux 9.6 on 69.62.106.94 +- **PHP:** 8.4 (use `php84` command, not `php`) +- **Database:** MariaDB/MySQL + +### Production Commands +All artisan commands on production require `php84` prefix: +```bash +php84 artisan migrate +php84 artisan config:cache +php84 artisan optimize:clear +``` + +### Deployment Checklist +```bash +# On production server +composer install --no-dev --optimize-autoloader +php84 artisan migrate --force +php84 artisan optimize:clear +php84 artisan config:cache +php84 artisan route:cache +php84 artisan view:cache + +# IMPORTANT: Always restart PHP-FPM after deployment +sudo systemctl restart php84-php-fpm +``` + +**Note:** The server has both PHP 8.3 and 8.4. Always use `php84` for artisan commands. Failing to restart PHP-FPM can cause cached config issues. ## Development Commands