Can you advise how you would do security updates for this distro, i.e. the standard procedure
- of the Drupal Core
- of the Distro and contrib modules

I could not see any documentation for this. If there is documentation then please advise where this is. Thank you.

Comments

therobyouknow created an issue. See original summary.

toby wild’s picture

+1

When I go to the update page it tells me I shouldn't update, and that I should come here to the project page for further information.

At this point there is 30 modules awaiting updates (On a fresh install), three of which are Security updates.

Does it not get updated until we finally launch into the GovCMS SAAS platform?

therobyouknow’s picture

Answering my own question, my guess is the steps are very similar to updating the Panopoly distribution ( https://www.drupal.org/node/2272177 ) and would be as follows:

1) Backup database, capture config overrides (see Panopoly page)

2)

Done at command line on server that runs the site, start by being in the site docroot folder (cd'ing into it)

Update

My previous approach (based on the Panopoly steps) did not work, here is what works:
- Download the distro as a .zip (or .tar.gz) from the drupal.org/project/govcms project page - either manually via the web or with wget or curl at the command line.
- Unpack/unzip the download and Replace your current distro files with the updated files from the downloaded distro
- Run drush updb

I found this new approach to work. Thanks to drupal.org user edb for the advice on the above.

Why did my previous approach not work?
When I issued drush dl govcms I got the error:

Source directory /tmp/drush_tmp_1472811109/govcms is not readable or does not exist. [error]
Project govcms (7.x-2.8) could not be downloaded to /var/www/site.dev/sites/all/modules/contrib/govcms.

I tried setting all the permissions, changing the tmp path in Media, File System in Config in Drupal Admin pages, but still got the same error.

Tip for the new working approach: Make sure you use the .zip/tag.gz from drupal.org/project/govcms and not the ones from the github project page for the distro. I would not suggest using the zip from github in these steps as not everything is included with that version, regarding dependencies. Package/dependency management is used to resolve that. But with the zip (or tar.gz from drupal.org/project/govcms everything regarding dependencies is included) so it's good to go straight out the box.

govCMS developers wish to comment (on revised approach)?

Thank you.

therobyouknow’s picture

I've also added a ticket in the govCMS github asking about a definitive guide: https://github.com/govCMS/govCMS/issues/344

In the meantime I expect to use my own steps defined above.

therobyouknow’s picture

Version: 7.x-2.0-beta9 » 7.x-2.8
aleayr’s picture

Status: Active » Closed (duplicate)

Hi therobyouknow and Toby,

Thanks for asking the question. I've updated this thread on Github, and I'll copy the response over here as well:

Hi @therobyouknow,

Your approach above is a good one. The issue with using the raw ZIP/TAR from Github is that it's actually a series of build scripts essentially, that build sources like Drupal.org will process and turn into something more usable as you've unfortunately discovered the hard way. So, yes, preferable to take the download directly from Drupal.org and apply that.

One of my focuses over the backend of this year is to really ramp up the amount of supporting documentation we have available for the distribution, both from a maintenance perspective for customers using it outside of our hosted platform, and for modules and functionality available to Site Builders and editors that might not be immediately obvious (especially for those new the Drupal).

I'll close this one off on here, so we have one thread of discussion, but thanks very much for your feedback and work on this.

Thanks
Adam.

therobyouknow’s picture

Thank you aleayr for your follow up. I will follow the thread on Github.

thomasmurphy’s picture

The thread on github seems to say that there is no documentation.

therobyouknow’s picture

thomasmurphy please use the steps on that thread you mention, I have provided further detail in this comment: https://github.com/govCMS/govCMS/issues/344#issuecomment-265100438