awsmug/wp-devops 问题修复 & 功能扩展

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

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

awsmug/wp-devops

Composer 安装命令:

composer require awsmug/wp-devops

包简介

Bash scripts for WordPress development with docker.

README 文档

README

Version 0.4.0

This project want to leave the VVV way for developing WordPress projects and to use a more lightweight and easy way to develop by using docker. The WP Devops contains an easy environment which is based on docker. It supports site-, plugin- and theme-development.

Instead of using the standard docker wordpress container, WP Devops is using a docker-compose container infrastructure where everything can be setup in detail.

In contrast to the one container structure of the WordPress docker container, the WP Devops is based on a docker-compose environment which is a lot more configurable. It contains a docker-compose file for the three types of development for sites, themes and plugins.

The environment contains:

  • Nginx
  • PHP (with Xdebug)
  • Mariadb
  • WordPress
  • WP-CLI
  • phpMyAdmin
  • MailHog

Requirements

WP Devos are made for Mac and Linux, also Composer and Docker is required. Please install before running WP Devops.

Installation

Add WP Devops functionality by using composer.

composer require awsmug/wp-devops:dev-master

Install the environment by setting up config files. Just follow the instructions. If you have setup a theme or a plugin installation you can put your code to the ./src directory and it will be displayed in the wp-admin theme or plugin section or use the initial plugin or theme files.

./vendor/bin/devops.sh init all

Running WP Devops

Start the local server (After the first start, just wait a while until you see a ready installed WordPress):

./devops.sh up

Stop the local server:

./devops.sh down

Updating devops scripts:

./devops.sh update

The site can be reached at the host you have entered in the installation at the browser. The admin can be reached at http://YOUR-HOST/wp-admin/.

Use the user 'admin' and password 'password' to login.

Environment

WP-CLI

Use the WP CLI with the wp.sh script. Example to list all plugins (see the documentation of WP CLI at https://wp-cli.org):

./wp.sh plugin list

Example to replace domain name of WordPress installation:

./wp.sh search-replace http://localhost http://mywordpres.test

phpMyAdmin

You can reach the phpMyAdmin interface at the URL http://YOUR-HOST:8080.

MailHog

You can reach the MailHog interface at the URL http://YOUR-HOST:8125.

XDebug

To debug your script we implemented Xdebug to the PHP configuration. To get it running for your project, just add your local IP to the php.ini file. This can be done in the 'conf/php/php.ini' file by replacing the 192.168.0.1 string with your local IP. The default remote debugging port is 9000.

System

OS

The scripts are tested on Mac OS and Linux. If you have informations or issues on other systems, please report on Github.

Further Configuration

For further settings we have added further configuration files for your individual server configuration. This is a list of files we offer to setup by yourself:

  • conf/nginx/default.conf
  • conf/nginx/nginx.conf
  • conf/php/php.ini
  • conf/php/www.conf

Please be careful on editing this files, this can cause issues to your setup.

Roadmap

We want to add further functionalities to the project which helps your on developing. Further options we want to add:

  • Codeception for unit-testing and user testing.
  • Xdebug autoconfig or input of IP address.
  • Deployment scripts.
  • Script which sends success on finished WordPress installation.

awsmug/wp-devops 适用场景与选型建议

awsmug/wp-devops 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 249 次下载、GitHub Stars 达 6, 最近一次更新时间为 2018 年 10 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 awsmug/wp-devops 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 awsmug/wp-devops 我们能提供哪些服务?
定制开发 / 二次开发

基于 awsmug/wp-devops 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 4
  • 开发语言: Shell

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2018-10-12