Compare commits
2 Commits
d8cda5b87f
...
42014c458c
| Author | SHA1 | Date |
|---|---|---|
|
|
42014c458c | |
|
|
71114974ab |
32
CLAUDE.md
32
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
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ use Livewire\Volt\Component;
|
|||
|
||||
new class extends Component
|
||||
{
|
||||
public function refresh(): void
|
||||
{
|
||||
// Explicit refresh method for wire:poll compatibility
|
||||
}
|
||||
|
||||
public function with(): array
|
||||
{
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ use Livewire\Volt\Component;
|
|||
|
||||
new class extends Component
|
||||
{
|
||||
public function refresh(): void
|
||||
{
|
||||
// Explicit refresh method for wire:poll compatibility
|
||||
}
|
||||
|
||||
public function with(): array
|
||||
{
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ use Livewire\Volt\Component;
|
|||
|
||||
new class extends Component
|
||||
{
|
||||
public function refresh(): void
|
||||
{
|
||||
// Explicit refresh method for wire:poll compatibility
|
||||
}
|
||||
|
||||
public function with(): array
|
||||
{
|
||||
return [
|
||||
|
|
|
|||
Loading…
Reference in New Issue