devops
Generates DevOps configurations and scripts for deploying and managing Laravel applications. Run local commands to debug and deploy.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Devops
Instructions
Environment Setup
Option 1: Docker Development (Recommended)
# Copy environment file
cp .env.example .env
# Start all services
docker compose up -d
# Install PHP dependencies
docker compose exec app composer install
# Install Node dependencies
docker compose exec app yarn install
# Generate application key
docker compose exec app php artisan key:generate
# Run migrations
docker compose exec app php artisan migrate
# Build frontend assets
docker compose exec app yarn dev
Option 2: Local Development
Ensure PHP 8.4+ is installed, then:
# Install dependencies
composer install
yarn install
# Setup environment
cp .env.example .env
php artisan key:generate
# Configure database and run migrations
php artisan migrate
# Start development servers
composer run dev # Starts Laravel Octane, queue worker, logs, and Vite
Development Scripts
All commands should run from a Docker container. The project includes several useful Composer scripts:
-
composer run dev- Start all development services (Octane, queue, logs, Vite) -
composer run ide-helper- Generate IDE helper files -
composer run phpstan- Run static analysis -
composer run pint- Check code style -
composer run pint:fix- Fix code style issues -
composer run rector- Check for code modernization opportunities -
composer run rector:fix- Apply code modernization
CI/CD Pipeline
The project uses GitHub Actions with:
- Linting: PHPStan, Laravel Pint, Rector
- Testing: Pest with coverage and mutation testing
- Code Coverage: Codecov integration
- Parallel Execution: Tests run in parallel for faster feedback
Environment-Specific Notes
- Local Development: Use Docker Compose for consistent environment
- Testing: Separate PostgreSQL instance for tests
- Production: Optimized for Laravel Octane with FrankenPHP
- Debugging: Xdebug available in development, Telescope for application debugging
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!