Promoting Code to Production Site in Drupal


Overview

Promoting code (such as modules, themes, libraries, or other files) from your development site to production site, can be initiated with 2 separate merge requests in GitLab. The workflow for site owners or site builders involves submitting a merge request to move code from the development site to staging/qa. After this request has been approved, site owners or site builders should confirm the changes on their staging/qa sites. After completing a site review of the staging/qa site, site owners or site builders should submit another request to move code from staging/qa to production. If you have any questions on how to get started, contact us at Drupal support.

Submit a request for code promotion

  1. Sign into GitLab using your university Directory ID and password.
  2. Select Merge Request tab from the menu.
  3. Select New Merge Request, then select the affected site.
  4. Set the Source Branch:
    • to Dev (development site) and the Target Branch to QA (staging/qa site), then select Compare Branches. Click Continue
      Or
    • to QA (staging/qa site) and the Target Branch to PROD (production site), then select Compare Branches. Click Continue.

NOTE: Merge requests submitted to move code between the development site to the production site directly, without a request to staging/qa in between, will be rejected.