2017 © Pedro Peláez
 

library laravel-update

image

mrcrankhank/laravel-update

  • Saturday, March 3, 2018
  • by MrCrankHank
  • Repository
  • 1 Watchers
  • 0 Stars
  • 364 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

An update solution for Laravel apps

This Laravel package helps you with deploying updates to your application., (*1)

Installation

composer require hankit/laravel-update

If you run Laravel <= 5.4, add the service provider to the 'providers' array in config/app.php:, (*2)

LaravelUpdate\UpdateServiceProvider

Publish config file, (*3)

php artisan vendor:publish

Configure your 'ignore_dirs' and 'ignore_files' in config/update.php., (*4)

Usage

  1. Build your application
  2. Call php artisan update:generate-json-file, this will generate a json file containing all paths to the files which are part of your current app.
  3. Copy your new build over the current deployed application.
  4. Call php artisan update:run, this generates a second json file with all current files and compares it with the one created in your deployment process. You will get a list of all files which are currently there, but are not part of the update you just deployed (of course you can ignore specific directories). You will then be able to delete the files which are not part of your installation. This prevents any deleted files from libraries lying around in your installation.

The Update command also migrates the database, clears the cache and puts your app into maintenance mode while updating., (*5)

The exact commands are (in this order):, (*6)

php artisan down
php artisan migrate --force
php artisan clear-compiled
php artisan view:clear
php artisan cache:clear
php artisan config:cache
php artisan up
Deployment process
php artisan update:generate-json-file
Update

Extract your update over the productive installation, (*7)

php artisan update:run

Compatibility

This package was developed in Laravel 5.5, but should work in older versions as well., (*8)

License

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

The Versions

03/03 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar MrCrankHank

03/03 2018

dev-dev

dev-dev

  Sources   Download

The Requires

 

by Avatar MrCrankHank

03/03 2018
21/01 2018
25/10 2017
25/10 2017