dblencowe / post-deploy-actions
Migration style post deployment commands for Laravel
Installs: 1 543
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >= 7.0
- laravel/framework: >= 5.1
This package is auto-updated.
Last update: 2024-11-07 00:48:16 UTC
README
Easily run environment specific post deploy actions for any Laravel project (>= version 5.1)
Installation
Install the package via composer:
$ composer require dblencowe/post-deploy-actions
Register the service provider with your app:
// config/app.php 'providers' => [ ... Dblencowe\PostDeploy\PostDeployServiceProvider::class, ]
Publish vendor files to add the migrations:
php artisan vendor:publish --tag=migrations
Create the database table that tracks run actions:
php artisan migrate
Usage
To create a Post Deployment command use artisans make command. Not specifying an environment will add a global action which will be run on all.
php artisan make:deploy_action name --env=ENVIRONMENT
To run outstanding actions there is an artisan command:
php artisan postdeploy:run