定制 adt/tracy-git 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

adt/tracy-git

最新稳定版本:v1.2.1

Composer 安装命令:

composer require adt/tracy-git

包简介

Git commit info for Tracy panel

README 文档

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

统计信息

  • 总下载量: 21.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 1
  • Watchers: 16
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-05