refactor: migrate Deployer from hooks to script-based architecture - #7
Merged
Merged
Conversation
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.
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughRestructured 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
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces hook-based deployment with centralized shell scripts for better reusability and maintainability.
Changes
.deployer/hooks/directory (1-building.sh, 2-releasing.sh, 3-finishing.sh).deployer/scripts/with three dedicated scripts:deploy.sh- Main deployment logic (linking shared resources, build, migrations)cron.sh- Scheduled task runner for Laravel/Symfony/CodeIgnitersupervisor.sh- Long-lived queue worker executiondeployer.yml→.deployer/inventory.yml(standard Deployer structure)Breaking Change
Users must update their deployment configuration to use the new
.deployer/inventory.ymlpath and reference the new scripts instead of hooks.