2017 © Pedro Peláez
 

library govcms-updater

Updating tool for govCMS

image

fiasco/govcms-updater

Updating tool for govCMS

  • Wednesday, May 17, 2017
  • by fiasco
  • Repository
  • 2 Watchers
  • 0 Stars
  • 76 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

govCMS Updater

A building script for managing govCMS updates for downstream PaaS projects., (*1)

Installation

Run this as apart of your govCMS site project. You can either download a release from github or clone it directly into your existing working project., (*2)

git clone https://github.com/fiasco/govcms-updater.git

Once download, you'll need to install the composer dependancies., (*3)

Note: Be sure not to commit this to git as a submodule. It may be best to not track it at all., (*4)

cd govcms-updater && composer install

Creating a new Project or Updating an existing project

To create a new govCMS project or to update an existing one, run this command:, (*5)

./govcms-updater/updater.sh

This will build govCMS in a folder called docroot next to the govcms-updater project. This will build govCMS from the master branch which is not an official release. If you want to use an official release you can pass a release tag as an argument., (*6)

./govcms-updater/updater.sh 7.x-2.0-beta10

Managing a local govCMS project

govcms-updater will overwrite the contents of docroot with the contents of govCMS when run with the exception of docroot/sites which will be preserved. Any local modules (such as feature exports), themes, libraries and site configuration should be stored in docroot/sites to avoid it being overridden., (*7)

Using the govcms-updater hooks system

govcms-updater comes with hooks that can run scripts before and after the import phase of the udpate where the govCMS update replacees the existing docroot folder. These hooks can be used to preserve and re-establish modifications to govCMS that are tracked locally only such as patches., (*8)

For example, you may enforce SSL through a modification to .htaccess or store additional assets like a style guide under the webroot., (*9)

To use these hooks, simple remove the ".disabled" extension from the shell scripts in the hooks directory., (*10)

mv hooks/post-import.sh.disabled hook/post-import.sh
mv hooks/pre-import.sh.disabled hook/pre-import.sh

The Versions

17/05 2017

2.x-dev

2.9999999.9999999.9999999-dev

Updating tool for govCMS

  Sources   Download

GPL-3.0

The Requires

 

by Josh Waihi

drupal govcms

16/05 2017

dev-master

9999999-dev

Updating tool for govCMS

  Sources   Download

GPL-3.0

The Requires

 

by Josh Waihi

drupal govcms