maple-syrup-group/healthcheck

该软件包最新版本(v1.17)没有可用的许可信息。

v1.17 2016-07-06 11:16 UTC

This package is not auto-updated.

Last update: 2024-09-09 12:47:06 UTC


README

此软件包将扫描您的laravel 5.x应用程序的配置文件,并识别应用程序的关键依赖项。它将检查

  • 缓存、数据库、队列后端是否可以连接。
  • 所需的PHP版本和PHP扩展
  • 所有迁移都已运行
  • 重要目录是可写的
  • 会话已被禁用

Build Status

如何从命令行执行

php artisan infra:healthcheck

[OK] PHP Extensions
[OK] PHP Extension Config
[OK] Database connection user
[OK] Database connection content
[OK] Default database connection found
[OK] Sessions are disabled
[OK] Cache connection for driver: array
[OK] Cache connection for driver: file
[OK] Cache connection for driver: redis

如何从HTTP执行

已配置 /healthcheck URI 以从HTTP上下文触发此操作

http://some.app/healthcheck

[OK] PHP Extensions
[OK] PHP Extension Config
[OK] Database connection user
[OK] Database connection content
[OK] Default database connection found
[OK] Sessions are disabled
[OK] Cache connection for driver: array
[OK] Cache connection for driver: file
[OK] Cache connection for driver: redis

生产模式与开发模式

有一些生产模式检查,例如 xdebug 被禁用。

如果您想在本地环境中运行它,则需要传递额外的参数。

HTTP 值:prod 默认:true 用法:?prod=false?prod=true

CLI 值:env 默认:false 用法:--env=production