yeswedev/auto-composer-update 问题修复 & 功能扩展

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

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

yeswedev/auto-composer-update

Composer 安装命令:

composer require yeswedev/auto-composer-update

包简介

A plugin that automatically updates the composer when a WordPress plugin is updated.

README 文档

README

A plugin that uses WordPress Automatic Updater to send data to an API that updates the "composer.json", add changes and commit. It works for plugins and core.

Installation and usage

  1. Install the plugin with composer :
{
      "type": "package",
      "package": {
        "name": "yeswedev-team/auto-composer-update",
        "version": "3.0.0",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://github.com/yeswedev-team/auto-composer-update/archive/refs/tags/{%VERSION}.zip"
        },
        "require": {
          "guzzlehttp/guzzle": "^7.8"
        }
      }
}
  1. Add the WP_CURRENT_PATH, GIT_REPOSITORY, GIT_BRANCH, UPDATE_REPOSITORY (true or false) and API_UPDATE_WORDPRESS environment variable, which points to the path of the WordPress project
  2. In your WordPress configuration, check the presence of these lines on the environment you want
    1. Config::define('AUTOMATIC_UPDATER_DISABLED', false);
    2. Config::define('FS_METHOD', 'direct');
    3. Config::define('WP_AUTO_UPDATE_CORE', true);
    4. Config::define('DISALLOW_FILE_MODS', false);
  3. Ensure that all maintainers can push on the branch concerned.
  4. Go to back-office and enable the plugin.
  5. Wait for WordPress Automatic Updater or use CLI to trigger it : wp eval 'do_action("wp_maybe_auto_update");'

Help

When the update fail, WordPress may add a '.lock' into the wp_options table, normally it will expire before the next trigger of the WordPress Automatic Updater, but you can also remove it manually : DELETE FROM 'wp_options' WHERE 'option_name' LIKE '%.lock%'; to be sure.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固