Deployment to Live Server
Prerequisites
- LAMP/LEMP Stack (PHP 8.2+, MySQL 8.0+, Nginx/Apache).
- Composer & NodeJS installed.
- Supervisor (for Queue Workers).
Migration Steps
-
Code Transfer:
git clone
cd g4-videoAI/web -
Environment Setup:
cp .env.example .env # Edit .env with Production DB and App URL settings
-
Install Dependencies:
composer install --optimize-autoloader --no-dev npm install && npm run build
-
Database:
php artisan migrate --force php artisan db:seed --class=KnowledgeBaseSeeder
-
Queue Worker:
Setup Supervisor to run:
php artisan queue:work --tries=3 -
Scheduler:
Add to crontab:
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
Post-Deployment
- Configure Storage (S3 or Local). If Local, ensure `storage/app/public` is linked (`php artisan storage:link`).
- Configure Mail settings in `.env`.
- Setup Video Video Workers via the Admin Panel.