adt/tracy-git

This package is abandoned and no longer maintained. No replacement package was suggested.

Git commit info for Tracy panel

v1.2.1 2021-10-20 19:06 UTC

This package is auto-updated.

Last update: 2022-03-04 11:17:01 UTC


README

See https://github.com/AppsDevTeam/tracy-system-info

Tracy Git panel

Useful for displaying information about currently deployed application version.

Screenshot

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

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:

  1. ini config

     before[] = local: vendor/bin/tracy-git-json app/git.json --with-user
    
  2. php config

     $before[] = 'local: vendor/bin/tracy-git-json app/git.json --with-user';