trilobit-gmbh/contao-refresh-bundle
Composer 安装命令:
composer require trilobit-gmbh/contao-refresh-bundle
包简介
Contao 4 / Contao 5 refresh bundle (e.g. dev -> stage, stage -> live, ...)
README 文档
README
This is a bundle for [Contao CMS] (version 4.13.x, 5.3.x).
Dies ist ein Bundle für [Contao CMS] (Version 4.13.x, 5.3.x).
Installation
Install the extension via composer: trilobit-gmbh/contao-refresh-bundle.
Kompatibilität / Getestet / Compatibility / Tested
- Contao version ~4.13
- Contao version ~5.3
- Contao version ~5.7
Configuration
You can define the following configuration parameters via your config.yml file:
# example trilobit_refresh: config: php: "php8.2 -d memory_limit=3G" symfony: "##php## ./vendor/bin/contao-console" contao-manager: "contao-manager.phar.php" composer: "##contao-manager## composer" environments: dev2stage: name: "EXAMPLE - dev 2 stage" dumps_path: "%kernel.project_dir%/system/tmp" exclude: database: tables: - "tl_crawl_queue" - "tl_cron_job" - "tl_log" - "tl_opt_in" - "tl_opt_in_related" - "tl_remember_me" - "tl_search" - "tl_search_index" - "tl_trusted_device" - "tl_undo" - "tl_user" - "tl_user_group" - "tl_version" source: path: "%kernel.project_dir%" db_host: "localhost" db_name: "contao_5_testing_53" db_user: "www" db_password: "www" target: path: "%kernel.project_dir%/../stage" db_host: "localhost" db_name: "contao_5_testing_53_refresh_stage" db_user: "www" db_password: "www" steps: - "clear old dump(s)": "cd ##dumps_path## && find source.sql target.sql -mtime +1 -exec rm {} \\;" - "contao-manager self-update": "cd ##source.path##/public && ##php## ##source.path##/public/##contao-manager## self-update" - "dump source database": "mysqldump --default-character-set=utf8 --add-drop-table ##exclude.database.tables|source.db_name## -h##source.db_host## -u##source.db_user## -p##source.db_password## ##source.db_name## -r##dumps_path##/source.$(date +\"%F\").sql" - "dump target database": "mysqldump --default-character-set=utf8 --add-drop-table ##exclude.database.tables|target.db_name## -h##target.db_host## -u##target.db_user## -p##target.db_password## ##target.db_name## -r##dumps_path##/target.$(date +\"%F\").sql" - "maintenance lock": "cd ##target.path## && ##symfony## contao:maintenance-mode on" - "copy composer": "cd ##source.path## && rsync -avPuz composer.* ##target.path##/" - "copy contao-manager": "cd ##source.path##/public && rsync -avPuz contao-manager.phar.php ##target.path##/public/" - "copy system/config": "cd ##source.path##/system && mkdir -p ##target.path##/system/config && rsync -avPuz config/ ##target.path##/system/config" - "copy templates": "cd ##source.path## && mkdir -p ##target.path##/templates && rsync -avPuz templates/ ##target.path##/templates" - "copy layout": "cd ##source.path## && mkdir -p ##target.path##/layout && rsync -avPuz layout/ ##target.path##/layout" - "copy public/layout": "cd ##source.path##/public && mkdir -p ##target.path##/public/layout && rsync -avPuz layout/ ##target.path##/public/layout" - "copy assets": "cd ##source.path## && mkdir -p ##target.path##/assets && rsync -avPuz assets/ ##target.path##/assets" - "copy files": "cd ##source.path## && mkdir -p ##target.path##/files && rsync -avPuz files/ ##target.path##/files" - "composer install": "cd ##target.path## && ##php## ##target.path##/public/##composer## install" - "push source database": "cd ##dumps_path## && mysql --default-character-set=utf8 -h##target.db_host## -u##target.db_user## -p##target.db_password## ##target.db_name## < source.$(date +\"%F\").sql" - "push target database common updates": "cd ##dumps_path## && mysql --default-character-set=utf8 -h##target.db_host## -u##target.db_user## -p##target.db_password## ##target.db_name## < source.commonupdates.sql" - "cache clear prod": "cd ##target.path##/var/cache && rm -rf prod/" - "cache clear dev": "cd ##target.path##/var/cache && rm -rf dev/" - "cache warmup": "cd ##target.path##/ && ##symfony## cache:warmup" - "maintenance unlock": "cd ##target.path## && ##symfony## contao:maintenance-mode off" stage2prod: name: "EXAMPLE - stage 2 prod" dumps_path: "%kernel.project_dir%/system/tmp" exclude: database: tables: - "tl_crawl_queue" - "tl_cron_job" - "tl_log" - "tl_opt_in" - "tl_opt_in_related" - "tl_remember_me" - "tl_search" - "tl_search_index" - "tl_trusted_device" - "tl_undo" - "tl_user" - "tl_user_group" - "tl_version" source: path: "%kernel.project_dir%" db_host: "localhost" db_name: "contao_5_testing_53_refresh_stage" db_user: "www" db_password: "www" target: path: "%kernel.project_dir%/../prod" db_host: "localhost" db_name: "contao_5_testing_53_refresh_prod" db_user: "www" db_password: "www" steps: - "clear old dump(s)": "cd ##dumps_path## && find source.sql target.sql -mtime +1 -exec rm {} \\;" - "contao-manager self-update": "cd ##source.path##/public && ##php## ##source.path##/public/##contao-manager## self-update" - "dump source database": "mysqldump --default-character-set=utf8 --add-drop-table ##exclude.database.tables|source.db_name## -h##source.db_host## -u##source.db_user## -p##source.db_password## ##source.db_name## -r##dumps_path##/source.$(date +\"%F\").sql" - "dump target database": "mysqldump --default-character-set=utf8 --add-drop-table ##exclude.database.tables|target.db_name## -h##target.db_host## -u##target.db_user## -p##target.db_password## ##target.db_name## -r##dumps_path##/target.$(date +\"%F\").sql" - "maintenance lock": "cd ##target.path## && ##symfony## contao:maintenance-mode on" - "copy composer": "cd ##source.path## && rsync -avPuz composer.* ##target.path##/" - "copy contao-manager": "cd ##source.path##/public && rsync -avPuz contao-manager.phar.php ##target.path##/public/" - "copy system/config": "cd ##source.path##/system && mkdir -p ##target.path##/system/config && rsync -avPuz config/ ##target.path##/system/config" - "copy templates": "cd ##source.path## && mkdir -p ##target.path##/templates && rsync -avPuz templates/ ##target.path##/templates" - "copy layout": "cd ##source.path## && mkdir -p ##target.path##/layout && rsync -avPuz layout/ ##target.path##/layout" - "copy public/layout": "cd ##source.path##/public && mkdir -p ##target.path##/public/layout && rsync -avPuz layout/ ##target.path##/public/layout" - "copy assets": "cd ##source.path## && mkdir -p ##target.path##/assets && rsync -avPuz assets/ ##target.path##/assets" - "copy files": "cd ##source.path## && mkdir -p ##target.path##/files && rsync -avPuz files/ ##target.path##/files" - "composer install": "cd ##target.path## && ##php## ##target.path##/public/##composer## install" - "push source database": "cd ##dumps_path## && mysql --default-character-set=utf8 -h##target.db_host## -u##target.db_user## -p##target.db_password## ##target.db_name## < source.$(date +\"%F\").sql" - "push target database common updates": "cd ##dumps_path## && mysql --default-character-set=utf8 -h##target.db_host## -u##target.db_user## -p##target.db_password## ##target.db_name## < source.commonupdates.sql" - "cache clear prod": "cd ##target.path##/var/cache && rm -rf prod/" - "cache clear dev": "cd ##target.path##/var/cache && rm -rf dev/" - "cache warmup": "cd ##target.path##/ && ##symfony## cache:warmup" - "maintenance unlock": "cd ##target.path## && ##symfony## contao:maintenance-mode off"
example configuration
trilobit-gmbh/contao-refresh-bundle 适用场景与选型建议
trilobit-gmbh/contao-refresh-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.12k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 03 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 trilobit-gmbh/contao-refresh-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 trilobit-gmbh/contao-refresh-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2022-03-14