Deployment
Launch App

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
  1. Code Transfer:
    git clone 
    cd g4-videoAI/web
  2. Environment Setup:
    cp .env.example .env
    # Edit .env with Production DB and App URL settings
  3. Install Dependencies:
    composer install --optimize-autoloader --no-dev
    npm install && npm run build
  4. Database:
    php artisan migrate --force
    php artisan db:seed --class=KnowledgeBaseSeeder
  5. Queue Worker:

    Setup Supervisor to run: php artisan queue:work --tries=3

  6. 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.