Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
/ updater Public archive

This package is for updating your Laravel project via view without doing any command in the prompt, this package may be useful when you sell your project to multiple people as they will update without any intervention from you via a simple destination

License

Notifications You must be signed in to change notification settings

salahhusa9/updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction :

This package is for updating your Laravel project via view without doing any command in the prompt, this package may be useful when you sell your project to multiple people as they will update without any intervention from you via a simple destination

How it works :

When you do any "Release and TAG " a new update will appear

Install :

Run this command for install :

composer require salahhusa9/updater

For edit config file or view :

php artisan vendor:publish

Start and Test:

  1. Clone You private repo used ssh , Because it not asks to enter the password when "git pull" is Running ,Or any other way that respects this

  2. GITHUB PRIVATE ACCESS TOKEN

  3. Create a first version in github Tag : 1.0.0

  4. Env :

    SELF_UPDATER_VERSION_INSTALLED=1.0.0
    SELF_UPDATER_GITHUB_PRIVATE_ACCESS_TOKEN="YOUR_GITHUB_PRIVATE_ACCESS_TOKEN"
    
    SELF_UPDATER_REPO_VENDOR="YOUR_GITHUB_USERNAME"
    SELF_UPDATER_REPO_NAME="YOUR_GITHUB_REPO_NAME"
  5. If You need to update :

    SELF_UPDATER_DATABASE_TYPE=sql
    SELF_UPDATER_SQL_PATH="YOUR_PATH_SQL_FILE"

    ex :

    SELF_UPDATER_SQL_PATH="database/sql"

    For sql file name it : version.sql ,ex : 1.0.0.sql

  6. Test If all work : Run

    php artisan updater:check-for-update

    Response :

    There's no new version available.

How to use :

Enter to : youdomain/update

Config :

This for Maintenance Mode : true / false / manual ,if need to activate or deactivate it in update

'maintenance-mode' => 'manual',

About

This package is for updating your Laravel project via view without doing any command in the prompt, this package may be useful when you sell your project to multiple people as they will update without any intervention from you via a simple destination

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published