Download the PHP package it-brains/laravel-release-scripts without Composer
On this page you can find all versions of the php package it-brains/laravel-release-scripts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download it-brains/laravel-release-scripts
More information about it-brains/laravel-release-scripts
Files in it-brains/laravel-release-scripts
Package laravel-release-scripts
Short Description Laravel Release Scripts, easy to set up one-off execute scripts that will be running during deploy script.
License MIT
Homepage https://github.com/spatie/laravel-backup
Informations about the package laravel-release-scripts
Release Script
This package allows creating one-off execute scripts. This should be useful when after some changes need run additional commands (for example, need add a new role to app when we implemented a new feature).
Install
Require this package with composer using the following command:
How use
Step 1. Create a new release script:
On './database/scripts' path will be create a class in migration format with 'run' method. The file can look like:
Step 2. To edit on your server deploy script - replace migrate command (php artisan migrate --force) with release scripts run command:
Note: with '--migrate' option the 'migrate' command running before all release scripts.
Important Notes
-
If you plan to run a command that requires a confirmation (often doing it on production environment mode) then need not to forget setup an option to prevent it. For example, setup '--force' option for run seed command:
- If you plan to run a command with option, for example: , you need add "scripts" directory to composer classmap:
Available commands
Possible todo:
- tests
- add fresh command that will remove all scripts from database and run again
- possible need move creating 'scripts' table to migration because how we will know that need reload all scripts when a developer ran 'php artisan migrate:refresh --seed' - all will be refreshed except scripts! And then really possible need extend migrations command for add the option '--scripts'.
All versions of laravel-release-scripts with dependencies
illuminate/support Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/filesystem Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0