See https://github.com/AppsDevTeam/tracy-system-info
Useful for displaying information about currently deployed application version.
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
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
.
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';