https://github.com/laraveleg/laravel-autodeploy
Deploy project after pushed commits.
https://github.com/laraveleg/laravel-autodeploy
autodeploy git gitlab komicho laravel
Last synced: about 1 year ago
JSON representation
Deploy project after pushed commits.
- Host: GitHub
- URL: https://github.com/laraveleg/laravel-autodeploy
- Owner: laraveleg
- Created: 2019-05-28T20:02:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T16:12:18.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T08:51:18.442Z (about 1 year ago)
- Topics: autodeploy, git, gitlab, komicho, laravel
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LaravelEG Laravel AutoDeploy
Deploy project after pushed commits.
### Install via composer
```
$ composer require laraveleg/laravel-autodeploy
```
### Publish vendor
- Run `php artisan vendor:publish`
- Selection `LaravelEG\Laravel\AutoDeploy\ServiceProvider`
### Config file
Go to `config/laraveleg/autodeploy.php`
- You can specify the name of the branch you want to pull from:- `'branch_remote' => 'master'`
## Add webhook
You can add webhook to route file `like routes/api.php`
```php
Route::prefix("laraveleg")->group(function () {
LaravelEG\Laravel\AutoDeploy\WebHook::init();
});
```
## Integrations with git repository
Publishing projects from the repository.
### URL (webhook):-
You can use url `/api/laraveleg/deploy/`
> Do not use web routes
`LARAVELEG_AUTODEPLOY_TOKEN` It is the secret token in LARAVELEG_AUTODEPLOY_TOKEN value inside `.env` file
### Secret Token
Add a value you choose but you must add this value in a .env file
```env
LARAVELEG_AUTODEPLOY_TOKEN=
```
### Git bar
Can enbale show git bar you wint add new middleware in app/Http/Kernel.php file
```php
\LaravelEG\Laravel\AutoDeploy\App\Http\Middleware\LastCommitMiddleware::class
```
> This feature does not work in production mode