adt / tracy-git
Git commit info for Tracy panel
Installs: 21 507
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 16
Forks: 0
Open Issues: 0
pkg:composer/adt/tracy-git
Requires (Dev)
- nette/nette: ^2.4 || ~3.0
README
See https://github.com/AppsDevTeam/tracy-system-info
Tracy Git panel
Useful for displaying information about currently deployed application version.
Installation
Composer:
composer require adt/tracy-git
config.neon:
extensions: tracyGit: ADT\TracyGit\DI\TracyGitExtension tracyGit: provider: json file: %appDir%/git.json
Currently supported providers are:
- json- needs fileto be specified and existing
 
- needs 
Updating git info
JSON provider
run vendor/bin/tracy-git-json app/git.json
- use -hor--helpto display usage,
- use --with-userto include current git user,
- use --with-timestampto include current timestamp
Note: do not forget do add app/git.json to your .gitignore.
Auto update
Most deploy systems have list of commands to execute before actual deploy takes place.
Eg. for dg/ftp-deployment and JSON provider:
- 
ini config before[] = local: vendor/bin/tracy-git-json app/git.json --with-user
- 
php config $before[] = 'local: vendor/bin/tracy-git-json app/git.json --with-user';
