See https://github.com/AppsDevTeam/tracy-system-info
Useful for displaying information about currently deployed application version.
Composer:
composer require adt/tracy-gitconfig.neon:
extensions:
tracyGit: ADT\TracyGit\DI\TracyGitExtension
tracyGit:
provider: json
file: %appDir%/git.jsonCurrently supported providers are:
json- needs
fileto be specified and existing
- needs
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.
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';
