Skip to content

refactor: migrate Deployer from hooks to script-based architecture - #7

Merged
loadinglucian merged 1 commit into
mainfrom
refactor/deployer-script-based-architecture
Feb 5, 2026
Merged

refactor: migrate Deployer from hooks to script-based architecture#7
loadinglucian merged 1 commit into
mainfrom
refactor/deployer-script-based-architecture

Conversation

@loadinglucian

Copy link
Copy Markdown
Owner

Replaces hook-based deployment with centralized shell scripts for better reusability and maintainability.

Changes

  • Removes .deployer/hooks/ directory (1-building.sh, 2-releasing.sh, 3-finishing.sh)
  • Adds .deployer/scripts/ with three dedicated scripts:
    • deploy.sh - Main deployment logic (linking shared resources, build, migrations)
    • cron.sh - Scheduled task runner for Laravel/Symfony/CodeIgniter
    • supervisor.sh - Long-lived queue worker execution
  • Moves deployer.yml.deployer/inventory.yml (standard Deployer structure)

Breaking Change

Users must update their deployment configuration to use the new .deployer/inventory.yml path and reference the new scripts instead of hooks.

Replace hook-based deployment with centralized shell scripts for better
reusability and maintainability. The new structure separates deployment
logic (deploy.sh), scheduled tasks (cron.sh), and queue workers
(supervisor.sh) into dedicated scripts.

BREAKING CHANGE: deployer.yml moved to .deployer/inventory.yml and
hook files removed. Users must update their deployment configuration.
@loadinglucian
loadinglucian merged commit e54190c into main Feb 5, 2026
1 check passed
@loadinglucian
loadinglucian deleted the refactor/deployer-script-based-architecture branch February 5, 2026 16:14
@coderabbitai

coderabbitai Bot commented Feb 5, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Restructured deployment workflow by removing two hook scripts and introducing new framework-agnostic scripts for cron tasks and supervisor worker management. The main deploy script was refactored with enhanced Laravel support, including shared resource linking, environment file handling, and build phase separation.

Changes

Cohort / File(s) Summary
Removed Deployment Hooks
.deployer/hooks/1-building.sh, .deployer/hooks/3-finishing.sh
Deleted hook scripts that previously managed PHP composer dependency installation, frontend asset building with bun, and release completion notifications.
New Framework-Agnostic Automation Scripts
.deployer/scripts/cron.sh, .deployer/scripts/supervisor.sh
Added scripts to execute scheduled tasks and long-lived worker processes with automatic framework detection (Laravel, Symfony, CodeIgniter), routing commands to appropriate executables.
Deploy Script Refactor
.deployer/scripts/deploy.sh
Restructured with enhanced Laravel support for shared resource management (storage, SQLite database, .env file linking), separated explicit build phase for composer and frontend assets, and consistent use of DEPLOYER_PHP for PHP command execution.

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant