GithubHelp home page GithubHelp logo

hernani / drush_deploy_sitealias_builder Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 180 KB

A repository with example files how to manage sites in different environments using drush deploy and site aliases

PHP 100.00%

drush_deploy_sitealias_builder's Introduction

drush_deploy_sitealias_builder

A repository with example files showing how to manage sites in different environments using drush deploy and site aliases This example configuration enables developers to automatically configure group site aliases that represent sites in different environments. Using drush deploy code can be grabbed from one code repository and deployed to the different nodes of a specified environment (dev, staging and production)

Usage

In order to this strategy to work it is needed that Drush is configured in all the web nodes. We will define in a central server, site aliases for each of the sites we are deploying. Sitealias-builder does the magic behind creating these aliases for the three different environments. Each site have a configuration file where code repository location and site name are defined. Please refer to torino.aliases.drushrc.php to understand how to create sitenames in the platform.

Each site will be deployed to a defined set of servers (farm). Each site configuration file should include the list of servers for the different enviroments. Please refer to deploy_environments_farm1.inc to understand how to define these farms.

Install

Copy deploy_environments_farm1.inc, sitealias-builder.php, torino.aliases.drushrc.php to a drush configuration directory (/etc/drush) and adapt them accordingly.

When issuing $drush sa

You should receive the site aliases defined for your site in the different environments: @torino @torino.dev @torino.dev.alumni @torino.dev.biblioteca @torino.dev.web1 @torino.prod @torino.prod.alumni @torino.prod.biblioteca @torino.prod.web1 @torino.prod.web2

To test deploying a site to a defined environment you can use drush deploy. Use the verbose flag to understand the actions from drush deploy. $ drush deploy @torino.prod -vvv

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.