- Install composer.
Optional - Global composer installation.
If skipping, you may need to replace composer
with php composer.phar
for your setup.
- Create project
composer create-project opengov/opengov-project:dev-master MYPROJECT --no-interaction
- Install using interface, choose
Open Government
as your installation profile. As an alternative, you can also use drush for installation
drush site:install og
The template will setup:
- Drupal core in
html/core
directory. - Profiles in
html/profiles
directory. - Contributed modules in
html/modules/contrib
directory. - Libraries for WET-BOEW in
html/libraries
directory. - Themes in
html/themes
directory and enables GCWeb as default theme. settings.php
andservices.yml
inhtml/sites/default
directory.- Drush in
vendor/bin/drush
directory. - DrupalConsole in
vendor/bin/drupal
directory. - Setup configurations for the Open Government project.
- Check for outdated modules
composer outdated "drupal/*"
-
If updates are required, it is very important to make a backup of both codebase and database befor updating
-
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.