承接 craftcms/server-check 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

craftcms/server-check

最新稳定版本:5.0.4

Composer 安装命令:

composer require craftcms/server-check

包简介

Craft CMS Server Check

README 文档

README

This script checks if a web server meets the minimum requirements to run a Craft 4 installation.

Usage

Run the following in a terminal of any *nix environment (e.g. Linux, MacOS, WSL):

curl -Lsf https://raw.githubusercontent.com/craftcms/server-check/HEAD/check.sh | bash

Note You can review the substance of this script before execution.

Alternatives

Web UI

Upload the server/ folder to your web server’s web root and load checkit.php from a browser to get an HTML report.

Remote CLI

The same server/ folder can be uploaded anywhere on your server and used via the command line to get a plain-text report:

php checkit.php

This is equivalent to the default usage instructions, above.

Shell exit codes

If all requirements are met, the script will return an exit code of 0.

The script will return an exit code of 1 if:

  • Any errors are encountered, or requirements are not met

  • An environment variable CRAFT_STRICT_SERVER_CHECK=1 is set, and any warnings are found:

    CRAFT_STRICT_SERVER_CHECK=1 php server/checkit.php

This can be especially useful in a CI/CD pipeline, or a Dockerfile, where you want the process to fail if the check does not pass:

# Dockerfile
FROM php:8.0-fpm
RUN curl -Lsf https://raw.githubusercontent.com/craftcms/server-check/HEAD/check.sh | bash

The official Craft Docker Images run this check when building to be certain all of Craft's requirements are met in any built image.

统计信息

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

GitHub 信息

  • Stars: 69
  • Watchers: 2
  • Forks: 15
  • 开发语言: Hack

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-31