Package Data | |
---|---|
Maintainer Username: | biggo |
Maintainer Contact: | joramkimata@gmail.com (Joram Kimata) |
Package Create Date: | 2017-01-17 |
Package Last Update: | 2017-01-17 |
Home Page: | https://packagist.org/packages/biggo6/laravel-updater |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:12:52 |
Package Statistics | |
---|---|
Total Downloads: | 26 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a Laravel 4.2 package which supports self-update of Laravel applications. You only need a remote webserver which holds the update files.
Go to this https://github.com/thetodd/laravel-updater
Laravel 4.2
PHP >= 5.4
a) Run
composer require biggo6/laravel-updater dev-master
b) Add service provider to /config/app.php file.
'providers' => [
...
'Biggo6\LaravelUpdater\LaravelUpdaterServiceProvider',
],
c) Create a version.json file in the root directory.
{
"version": "[your initial version]"
}
d) Publish config file. (optionally)
php artisan config:publish biggo6/laravel-updater
This package registers some new routes.
You can check if there is a new application version when you type self-updater/check
in your web browser after the base url of your application.
You can automatically update your application with the url self-updater/update
.
php artisan view:publish biggo6/laravel-updater
This command will move the package's views into the app/views/packages
directory. If this directory doesn't already exist, it will be created when you run the command. Once the views have been published, you may tweak them to your liking! The exported views will automatically take precedence over the package's own view files.
The remote version file holds the up to date version of the application. It also defines where to find the update package.
{
"version": "1.0.1",
"file": "versions/v101.zip"
}
If you published the configuration fiels with the config:publish
artisan command, you can
specify your own remote server.
'remote_uri' => 'http://localhost/app-name/'
You can easily set this parameter in config/packages
. The URI should not have a trailing slash
and the remote_version.json file on the webserver must be accessible.
https://github.com/thetodd/laravel-updater