despark/laravel-after-deploy-actions

Apply/rollback actions after a deployment

v1.0.5 2023-03-02 07:29 UTC

This package is auto-updated.

Last update: 2024-04-30 00:39:28 UTC


README

This package is inspired by the Laravel migration logic to create after deploy actions.

Installation

  1. Install via Composer
    composer require despark/laravel-after-deploy-actions
    
  2. Publish migrations
      php artisan vendor:publish --provider="Despark\AfterDeployAction\Providers\AfterDeployActionServiceProvider" --tag="migrations"
    
  3. Apply migrations
    php artisan migrate
    
  4. Create a folder called after-deploy-actions in your base project folder

Usage

  1. To make a new action run the following command(action_name must be snake case)
    php artisan after-deploy-actions:make action_name
    
  2. Apply actions
    php artisan after-deploy-actions:up
    
  3. Rollback actions
    php artisan after-deploy-actions:rollback
    

License

The MIT License (MIT). Please see License File for more information.