Add commit SHA at status page

This commit is contained in:
Pig Fang 2019-08-31 09:42:29 +08:00
parent cfa552157f
commit 347399c944
3 changed files with 3 additions and 0 deletions

View File

@ -376,6 +376,7 @@ class AdminController extends Controller
'version' => config('app.version'), 'version' => config('app.version'),
'env' => config('app.env'), 'env' => config('app.env'),
'debug' => config('app.debug') ? trans('general.yes') : trans('general.no'), 'debug' => config('app.debug') ? trans('general.yes') : trans('general.no'),
'commit' => Str::limit(app('webpack')->commit, 10, ''),
'laravel' => app()->version(), 'laravel' => app()->version(),
], ],
'server' => [ 'server' => [

View File

@ -92,6 +92,7 @@ status:
version: Version version: Version
env: Application Environment env: Application Environment
debug: Debugging or Not? debug: Debugging or Not?
commit: Commit
laravel: Laravel Version laravel: Laravel Version
server: server:
name: Server name: Server

View File

@ -92,6 +92,7 @@ status:
version: 版本 version: 版本
env: 应用环境 env: 应用环境
debug: 是否处于调试状态 debug: 是否处于调试状态
commit: 提交
laravel: Laravel 版本 laravel: Laravel 版本
server: server:
name: 服务器 name: 服务器