itinerisltd/preflight-itineris

为Itineris项目提供的额外预启动命令检查器。

安装: 143

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 4

分支: 0

开放问题: 1

类型:wp-cli-package

0.2.0 2018-08-22 07:45 UTC

This package is auto-updated.

Last update: 2024-09-07 07:08:07 UTC


README

Packagist Version PHP from Packagist Packagist Downloads GitHub License Hire Itineris

Itineris项目提供的额外preflight-command检查器。

此包仅适用于Itineris项目。立即中止!

这是什么?

此包为Itineris项目添加以下内容,以便您无需复制和粘贴

安装

1A. WP CLI - Kinsta

Kinsta仍在使用WP CLI v1.x。联系Kinsta支持团队将您的站点WP CLI升级到v2。(可能需要几小时)

$ wp package install itinerisltd/preflight-itineris:@stable

1B. WP CLI - AWS

合并itinerisltd/trellis-aws的master分支,然后重新配置。

2. Bedrock

这意味着<bedrock>/config/preflight.toml

// <bedrock>/config/application.php

Config::define('PREFLIGHT_DIR', __DIR__);

// Not recommanded. Update Bedrock!!!!
// In case you are using an old Bedrock without roots/wp-config:
define('PREFLIGHT_DIR', __DIR__);

3. preflight.toml

将其复制到<bedrock>/config/preflight.toml

# <bedrock>/config/preflight.toml

# Use TOML v0.4.0 syntax
# See: https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md

# TOML v0.5.0 not yet supported

###########################################################
#                                                         #
#     If you disable or change checker options,           #
#     you must write comments explaining the reasons!     #
#                                                         #
###########################################################

# Use expected production URL (i.e: client's doamin)
# Starts with 'https://'
[extra-production-home-url]
url = 'https://preflightcommand.com' # TODO

[extra-production-site-url]
url = 'https://preflightcommand.com/wp' # TODO

用法

$ wp help preflight
$ wp help preflight <subcommand>

# List all checkers
$ wp preflight checklist

# List all .toml config files
$ wp preflight config paths

# Validate all .toml config files
$ wp preflight config validate

# Run the checks
$ wp preflight check

# More info
$ wp preflight check --fields=id,status,message,description,link

# Print in yaml, for smaller screens
$ wp preflight check --fields=id,description,link,status,messages --format=yaml

# See all check options
$ wp help preflight check

插件

这些插件会自动注入它们的检查(无需安装)