GithubHelp home page GithubHelp logo

maksymz / dv-campus-2020-2021-magento Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 3.0 35 MB

License: Open Software License 3.0

PHP 65.46% HTML 19.89% JavaScript 8.79% Less 3.88% CSS 1.96% VCL 0.01% Shell 0.02%

dv-campus-2020-2021-magento's Introduction

Project Deployment

After running the composer install command revert the following files:

# .htaccess - checkout due to websites mapping and custom rewrite rules
git checkout .htaccess

Deploying changes to the server

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:

  1. go to the build system located in /path/to/the/build/system/;
  2. pull changes, install modules, compile code and assets;
  3. go to the live system in /path/to/the/production/system/;
  4. enter maintenance mode (only for deploy-full.sh);
  5. pull changes, run composer install (only for deploy-full.sh) and setup:upgrade;
  6. copy generated files from the build system;
  7. switch to the production mode;
  8. turn off maintenance (only for deploy-full.sh).

Applied Patches

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)


dv-campus-2020-2021-magento's People

Contributors

maksymz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.