laravel-after-deploy-actions maintained by despark
Description
Apply/rollback actions after a deployment
Author
Last update
2023/03/02 10:29
(dev-master)
License
Downloads
1 062
Tags
About
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-actionsin your base project folder
Usage
- To make a new action run the following command(
action_namemust 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.