wearerequired/composer-deployer
Composer 安装命令:
composer require wearerequired/composer-deployer
包简介
A composer plugin to create a deployer configuration file.
关键字:
README 文档
README
A plugin for Composer to create the Deployer configuration file (deploy.php).
Installation
Via Composer
composer require wearerequired/composer-deployer
Features
- Supports for Deployer v7.
- Creates
deploy.phpin project root directory. - Defines a
deploytask to deploy a project. - Installs and updates WordPress translations via WP-CLI if
wp_languagesoption is set. - Clears OPcache via WP-CLI (requires WP-CLI Clear OPcache). Can be disabled via
wp_clear_opcacheoption. - Runs WordPress database routine if
wordpressoption is set. - Runs custom commands via
post_rollout_commandsoption before the deployment is finished. - Provides a reusable workflow for GitHub for deployment.
Configuration
Next to deploy.php you should create a deploy.yml file in the project root directory. For the supported syntax see Deployer's documentation or the following example:
.base: &base hostname: ssh.example.ch remote_user: jane application: example.ch repository: git@github.com:wearerequired/example.git deploy_path: ~/public_html/{{application}}/{{stage}} branch: main shared_files: - wordpress/.htaccess shared_dirs: - wordpress/content/uploads wp_languages: - de_DE - de_DE_formal - de_CH wp_clear_opcache: true post_rollout_commands: - "{{bin/wp}} litespeed-purge all || true" hosts: staging: <<: *base labels: stage: staging production: <<: *base branch: production shared_files: - wordpress/.htaccess - wordpress/google123456789abc.html labels: stage: production
统计信息
- 总下载量: 19.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-22