- 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 Governmentas 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/coredirectory. - Profiles in
html/profilesdirectory. - Contributed modules in
html/modules/contribdirectory. - Libraries for WET-BOEW in
html/librariesdirectory. - Themes in
html/themesdirectory and enables GCWeb as default theme. settings.phpandservices.ymlinhtml/sites/defaultdirectory.- Drush in
vendor/bin/drushdirectory. - DrupalConsole in
vendor/bin/drupaldirectory. - 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.