Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

AppsDevTeam/TracyGit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

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';