despark / laravel-after-deploy-actions
Apply/rollback actions after a deployment
v1.0.5
2023-03-02 07:29 UTC
Requires
- php: >=8.1
- illuminate/support: >=9.0
README
This package is inspired by the Laravel migration logic to create after deploy actions.
Installation
- Install via Composer
composer require despark/laravel-after-deploy-actions
- Publish migrations
php artisan vendor:publish --provider="Despark\AfterDeployAction\Providers\AfterDeployActionServiceProvider" --tag="migrations"
- Apply migrations
php artisan migrate
- Create a folder called
after-deploy-actions
in your base project folder
Usage
- To make a new action run the following command(
action_name
must be snake case)php artisan after-deploy-actions:make action_name
- Apply actions
php artisan after-deploy-actions:up
- Rollback actions
php artisan after-deploy-actions:rollback
License
The MIT License (MIT). Please see License File for more information.