self-diagnosis.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. return [
  3. /*
  4. * A list of environment aliases mapped to the actual environment configuration.
  5. */
  6. 'environment_aliases' => [
  7. 'prod' => 'production',
  8. 'live' => 'production',
  9. 'local' => 'development',
  10. ],
  11. /*
  12. * Common checks that will be performed on all environments.
  13. */
  14. 'checks' => [
  15. \BeyondCode\SelfDiagnosis\Checks\AppKeyIsSet::class,
  16. \BeyondCode\SelfDiagnosis\Checks\CorrectPhpVersionIsInstalled::class,
  17. \BeyondCode\SelfDiagnosis\Checks\DatabaseCanBeAccessed::class => [
  18. 'default_connection' => true,
  19. 'connections' => [],
  20. ],
  21. \BeyondCode\SelfDiagnosis\Checks\DirectoriesHaveCorrectPermissions::class => [
  22. 'directories' => [
  23. storage_path(),
  24. base_path('bootstrap/cache'),
  25. ],
  26. ],
  27. \BeyondCode\SelfDiagnosis\Checks\EnvFileExists::class,
  28. \BeyondCode\SelfDiagnosis\Checks\MaintenanceModeNotEnabled::class,
  29. \BeyondCode\SelfDiagnosis\Checks\MigrationsAreUpToDate::class,
  30. \BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreInstalled::class => [
  31. 'extensions' => [
  32. 'openssl',
  33. 'PDO',
  34. 'mbstring',
  35. 'tokenizer',
  36. 'xml',
  37. 'ctype',
  38. 'json',
  39. 'redis',
  40. 'bcmath',
  41. 'curl',
  42. 'exif',
  43. 'iconv',
  44. 'intl',
  45. 'zip'
  46. ],
  47. 'include_composer_extensions' => true,
  48. ],
  49. \BeyondCode\SelfDiagnosis\Checks\RedisCanBeAccessed::class => [
  50. 'default_connection' => false,
  51. 'connections' => [],
  52. ],
  53. \BeyondCode\SelfDiagnosis\Checks\StorageDirectoryIsLinked::class,
  54. ],
  55. /*
  56. * Environment specific checks that will only be performed for the corresponding environment.
  57. */
  58. 'environment_checks' => [
  59. 'development' => [
  60. \BeyondCode\SelfDiagnosis\Checks\ComposerWithDevDependenciesIsUpToDate::class,
  61. \BeyondCode\SelfDiagnosis\Checks\ConfigurationIsNotCached::class,
  62. \BeyondCode\SelfDiagnosis\Checks\RoutesAreNotCached::class,
  63. \BeyondCode\SelfDiagnosis\Checks\ExampleEnvironmentVariablesAreUpToDate::class,
  64. ],
  65. 'production' => [
  66. \BeyondCode\SelfDiagnosis\Checks\ComposerWithoutDevDependenciesIsUpToDate::class,
  67. \BeyondCode\SelfDiagnosis\Checks\ConfigurationIsCached::class,
  68. \BeyondCode\SelfDiagnosis\Checks\DebugModeIsNotEnabled::class,
  69. \BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreDisabled::class => [
  70. 'extensions' => [
  71. 'xdebug',
  72. ],
  73. ],
  74. \BeyondCode\SelfDiagnosis\Checks\RoutesAreCached::class,
  75. //\BeyondCode\SelfDiagnosis\Checks\ServersArePingable::class => [
  76. // 'servers' => [
  77. // 'www.google.com',
  78. // ['host' => 'www.google.com', 'port' => 8080],
  79. // '8.8.8.8',
  80. // ['host' => '8.8.8.8', 'port' => 8080, 'timeout' => 5],
  81. // ],
  82. //],
  83. //\BeyondCode\SelfDiagnosis\Checks\SupervisorProgramsAreRunning::class => [
  84. // 'programs' => [
  85. // 'horizon',
  86. // ],
  87. // 'restarted_within' => 300,
  88. //],
  89. //\BeyondCode\SelfDiagnosis\Checks\HorizonIsRunning::class,
  90. ],
  91. ],
  92. ];