How moh-sagor/github-updater works
GithubUpdater is a Laravel package that pulls a configured GitHub repository and then runs configured Artisan tasks, through either a web route or an Artisan command. The web controller streams output to a terminal-style response; the CLI command reports output to the console. Configuration is merged by the service provider and read by both execution paths. The README also describes authentication tokens and chained tasks; source excerpts confirm configuration-driven command execution, but do not establish additional deployment stages beyond those shown.
Main entry points: GithubPullCommand.php Pull command · GithubController.php Web updater · GithubUpdaterServiceProvider.php Service provider · web.php Pull route
Components 12
Laravel Setup
- Service provider
src/Providers/GithubUpdaterServiceProvider.php - Updater config
config/github-updater.php - Symfony Process
Web Deployment
- Pull route
src/Routes/web.php - Web updater
src/Controllers/GithubController.php - Streamed terminal
src/Controllers/GithubController.php
CLI Deployment
- Pull command
src/Commands/GithubPullCommand.php - Console output
src/Commands/GithubPullCommand.php
Other components
- Web user
- CLI operator
- GitHub repository
- Artisan tasks
Connections 16
- Service provider → Updater config: merges config
- Service provider → Pull route: loads routes
- Service provider → Pull command: registers command
- Web user → Pull route: requests pull
- Pull route → Web updater: dispatches
- Web updater → Updater config: reads settings
- Web updater → Symfony Process: runs commands
- Symfony Process → GitHub repository: pulls repository
- Symfony Process → Artisan tasks: runs tasks
- Web updater → Streamed terminal: streams output
- CLI operator → Pull command: invokes command
- Pull command → Updater config: reads settings
- Pull command → Symfony Process: runs commands
- Pull command → Console output: reports output
- Symfony Process → GitHub repository: pulls repository
- Symfony Process → Artisan tasks: runs tasks