Reusable Deployer 8 tasks and recipes for Statik.be projects.
- PHP 8.3+
- Deployer 8.x
composer require --dev statikbe/deployer-tasks<?php
namespace Deployer;
require 'vendor/statikbe/deployer-tasks/recipe/laravel.php';
set('application', 'my-app');
set('repository', 'git@github.com:statikbe/my-app.git');
host('production')
->set('hostname', 'prod.example.org')
->set('deploy_path', '/var/www/my-app');<?php
namespace Deployer;
require 'vendor/statikbe/deployer-tasks/recipe/craft.php';
// ...host configRequire an individual task file and wire the hook yourself:
require 'vendor/statikbe/deployer-tasks/recipe/tasks/voight.php';
after('deploy', 'statik:voight');| Task | Description |
|---|---|
statik:reload-phpfpm |
Reload PHP-FPM safely with mutex, debounce, and opcache validation. Wired by both starters to after('deploy:symlink', ...). |
statik:voight |
Download and run the Voight versioning script in the release path. |
More tasks (composer install with secret env, local-build asset rsync, maintenance banner, config-file sync) ship in upcoming releases.
composer install
composer test # Pest — currently no tests; helper classes in src/ will get unit tests
composer format # Laravel Pint
composer analyse # PHPStan (exits non-zero until src/ has PHP files; recipe/ is intentionally excluded since Deployer's global functions need stubs)The recipes are smoke-tested by loading them through Deployer:
vendor/bin/dep --file=tests/fixtures/laravel-deploy.php list
vendor/bin/dep --file=tests/fixtures/craft-deploy.php listMIT — see LICENSE.