Giter Club home page Giter Club logo

dv_campus's Introduction

Deploying changes to the live 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).

dv_campus's People

Contributors

maksymz avatar

Watchers

 avatar Bogdan Kolesnikov 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.