After running the composer install
command revert the following files:
# .htaccess - checkout due to websites mapping and custom rewrite rules
git checkout .htaccess
Deployment is automated to decrease the possible downtime. Files to run:
deploy-theme-only.sh
- deploy changes to templates, layouts, CSS, DI etc., without installing new modules, upgrading them or changing modules sequence.deploy-full.sh
- deploy changes that include installing new modules, or data/schema upgrades.
To use this scripts the following environment variables must be set:
BUILD_SYSTEM_PATH
- path to the build system without/
at the end (not visible from the web);LIVE_SYSTEM_PATH
- path to the live system/
at the end (development, staging, production etc.);GIT_BRANCH
- branch to checkout and deploy.
To add these variables to the environment, run the following commands and restart the terminal session. Ensure that
.bash_aliases
is available in your OS (debian-based mostly), use ~/.bash_profile
or other respective file otherwise:
export BUILD_SYSTEM_PATH="/path/to/the/build/system/" >> ~/.bash_aliases
export PRODUCTION_SYSTEM_PATH="/path/to/the/production/system/" >> ~/.bash_aliases
export GIT_BRANCH="name-of-you-branch" >> ~/.bash_aliases
Deployment process flow implemented in the above files:
- go to the build system located in
/path/to/the/build/system/
; - pull changes, install modules, compile code and assets;
- go to the live system in
/path/to/the/production/system/
; - enter maintenance mode (only for
deploy-full.sh
); - pull changes, run
composer install
(only fordeploy-full.sh
) andsetup:upgrade
; - copy generated files from the build system;
- switch to the production mode;
- turn off maintenance (only for
deploy-full.sh
).
Patches location: var/patches/
Issue: The command i18n:collect-phrases
does not collect phrases defined in HTML files via translate
and $t()
.
Issue info: i18n:collect-phrases -m can't find many important magento phrases
Affected component(s): magento/magento2-base
Patch file(s):
- GitHub-11175_Fix-for-html-parser-in-i18n-collect-phrases.patch
Fixed in: Magento 2.4.2 (possibly only a partial fix will be shipped)