opengov/opengov-project

Project template for Open Government project with composer

dev-master 2022-03-25 02:33 UTC

This package is auto-updated.

Last update: 2024-03-26 02:40:08 UTC


README

Build Status

Usage

  1. Install composer.

Optional - Global composer installation. If skipping, you may need to replace composer with php composer.phar for your setup.

  1. Create project
composer create-project opengov/opengov-project:dev-master MYPROJECT --no-interaction
  1. Install using interface, choose Open Government as your installation profile. As an alternative, you can also use drush for installation
drush site:install og

What does the template do?

The template will setup:

  1. Drupal core in html/core directory.
  2. Profiles in html/profiles directory.
  3. Contributed modules in html/modules/contrib directory.
  4. Libraries for WET-BOEW in html/libraries directory.
  5. Themes in html/themes directory and enables GCWeb as default theme.
  6. settings.php and services.yml in html/sites/default directory.
  7. Drush in vendor/bin/drush directory.
  8. DrupalConsole in vendor/bin/drupal directory.
  9. Setup configurations for the Open Government project.

Updating core and/or contributed modules

  1. Check for outdated modules
composer outdated "drupal/*"
  1. If updates are required, it is very important to make a backup of both codebase and database befor updating

  2. Update modules that are outdated

composer update drupal/MODULE --with-dependencies
drush updatedb
drush cr

If you want to know all packages that will be updated by the composer update command, use the --dry-run option first.

For more detailed information on updating Drupal, check Drupal Documentation.