GithubHelp home page GithubHelp logo

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

View Code? Open in Web Editor NEW
0.0 1.0 1.0 37.46 MB

{DV.Campus} 2021/2022 - Magento

License: Open Software License 3.0

PHP 67.07% HTML 18.69% JavaScript 8.79% Less 3.64% CSS 1.81% VCL 0.01% Shell 0.01%

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

Project Deployment

After running the command composer install revert the following files:

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

Local development

Create a symlink to the proper app/etc/env.*.php file. It is preferable to use app/etc/env.dev.php as the configuration source. Use this with the appropriate docker-compose*.yaml file.

Deploying changes to the server

IMPORTANT! Check git status before running any deployment scripts!

Local testing before commit

The code must be tested before commit. Change the ./scenario/full-deploy.yml:

  • set configuration > notification > enabled to false;
  • set deployment > database > backup to false;
  • remove git pull {branch} command from the scenario file because it can't be executed inside the Docker container;
  • remove --no-dev from the composer install.
docker exec -it $(getContainerName) php mad.phar deployment:run full-deploy --php-binary=php --composer=composer

Deploy changes (any server except production)

php mad.phar deployment:run full-deploy --branch="origin development" --environment=development

Deployment process flow implemented in the above files:

  1. set the website to maintenance (only full-deploy scenario);
  2. switch to the default mode;
  3. pull changes from the current Git branch;
  4. install modules;
  5. run setup:upgrade;
  6. compile the code and assets;
  7. switch to the production mode without compilation;
  8. set proper indexer modes;
  9. turn off maintenance (only full-deploy scenario).

Deploy to production

Full deploy to production consists of two stages:

  • full deploy on the build system;
  • pull changes and sync prepared files to production.
# Deploy to the build system
cd ~/domains/dv-campus-2021-2022-magento-local.allbugs.info/build_system/
php mad.phar deployment:run full-deploy --environment=build
# Pull changes and deploy to the production system
cd ~/domains/dv-campus-2021-2022-magento-local.allbugs.info/http/
php mad.phar deployment:run production-deploy --environment=production

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

Contributors

dv-campus-pc avatar maksymz avatar

Watchers

 avatar

Forkers

andreyz11288

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.