itinerisltd/preflight-itineris 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

itinerisltd/preflight-itineris

Composer 安装命令:

composer require itinerisltd/preflight-itineris

包简介

Extra preflight-command checkers for Itineris projects.

README 文档

README

Packagist Version PHP from Packagist Packagist Downloads GitHub License Hire Itineris

Extra preflight-command checkers for Itineris projects.

This package only make sense for Itineris projects. Abort immediately!

What is this?

This package adds the followings to Itineris projects so that you don't need to copy and paste:

Installation

1A. WP CLI - Kinsta

Kinsta still using WP CLI v1.x. Contact Kinsta support team to upgrade your site's WP CLI to v2. (It might take a few hours)

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

1B. WP CLI - AWS

Merge itinerisltd/trellis-aws master, then re-provision.

2. Bedrock

This means <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

Copy this to <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

Usage

$ 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

Plugins

These plugins inject their checks automatically (no installation needed):

统计信息

  • 总下载量: 148
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固