* DD#0000: feat: Magento2: Add support for preload keys
- Also updated to remove the config set and instead manually add the hocks to your deployer file
- And move var-exporter into the main composer require
- https://github.com/deployphp/deployer/pull/3453#issuecomment-1497248859
* DD#0000: feat: Reverted composer updates
* DD#0000: feat: Updated docs
* DD#0000: feat: Updated replace to use preg to make sure it only checks beginning of string
Updated readme use better grammer
* DD#0000: feat: Updated md docs
* Only set maintenance mode once if needed
Also:
- by adding magento:maintenance:enable-if-needed to the task list instead of invoking it directly, it is now possible to use after() to add custom tasks to be performed in maintenance mode
- the maintenance_mode_status_active check was removed because it is unnecessary and can return wrong results because of caching
* Update docs
* adds sticky to writable recipe
chgrp for all files, chmod g+rwxs for directories, chmod g+rw for files
* adds artifact deployment for magento2 recipe
* Updates Documentation
* removes mode that has been submitted in other MR
* adds divers discussion results from PR #3317
- uses contrib/cachetool
- removes task build:prepare-env
- comments additional_shared_files and additonal_shared_dirs
- avoids invoke()
* updates docs
* corrects additional shared
* expands DocGen for artifact deployment and adds documentation to the magento2 recipe
* corrects missing capital and typo
---------
Co-authored-by: Anton Medvedev <anton@medv.io>
* Magento: create variable for bin/magento
so it can be overridden to a custom location
* Update docs
* Allow Magento to be installed in a subdirectory
* Update docs
* Use Magento subdirectory for composer command
* Fix bin/magento call in magento_version function
* Update docs
* Update docs
* Combine magento_dir and bin/magento configurations correctly
* Magento: Fix artifact_path generation
- Fix 1. Add -p parameter to mkdir command
{{artifact_path}} could be configured with multiple folders such as build/artifacts
- Fix 2. run() -> runLocally()
The {{artifact_dir}} is used to keep artifacts archive file.
It should be called at CI server only and not at target server.
Then the task `artifact:upload` uploads this file at target server host under {{release_path}}.
It is not needed to have {{artifact_dir}} at target server.
* Update docs
* var/page_cache as writable_dirs
It will fix following Zend exception after successful deployment:
Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/path/to/www/releases/7/var/page_cache" is not writable in /path/to/www/releases/7/vendor/magento/zendframework1/library/Zend/Cache.php:209
This exception does not occur on every environment, it depends on PHP pool user/group (default www-data or owner of project directory).
* docgen
* Make Magento 2 recipe suitable for push strategy deployments
* updated Magento 2 recipe docs
* Disable task by using disabled()
* Removed push strategy settings, moved build commands to its own group
* Updated docs
Fixes failed deploys when app/etc/config.php is changed with added sites, stores, store views or themes.
Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de>
* Magento2: look for database migrations in order to get zero downtime deployments when changes are not needed
- also keep maintenance status active in case it was already previously activated
* Magento2: adjust shared dirs
* Magento2: dump autoload before setup di compile
- fix for magento 2.4 deployments https://github.com/magento/magento2/issues/23251
* Magento2: force static content deploy
- avoids deployment failure when magento production mode is not set
* Magento2: update change log
* Magento2: update recipe docs
* Revert "Magento2: force static content deploy"
This reverts commit 45de3337a5a3e524685c422be3fbc6957fe6b480.
* Magento2: detect configuration changes, launch config import
* Magento2: refactor recipe
- make all tasks compatible with any magento 2 version (skip command execution if still does not exist in certain version)
- remove duplicated check on maintenance status
- remove catch for processFailedException
Co-authored-by: Unai Lopez <unai.lopez@vdshop.es>
Co-authored-by: Peter Jaap Blaakmeer <peterjaap@blaakmeer.com>
* Remove magento:enable from Magento 2 recipe
Magento's module states are stored in app/etc/config.php. This task
ignored that and blindly enabled all installed modules.
* Mention the removal of magento:enable in the changelog