adt / tracy-git
Git commit info for Tracy panel
Installs: 20 137
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 16
Forks: 0
Open Issues: 0
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
file
to be specified and existing
- needs
Updating git info
JSON provider
run vendor/bin/tracy-git-json app/git.json
- use
-h
or--help
to display usage, - use
--with-user
to include current git user, - use
--with-timestamp
to 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';