Skip to content

Commit

Permalink
Merge pull request #61 from itk-dev/feature/readme-update
Browse files Browse the repository at this point in the history
1062: Updated readme
  • Loading branch information
cableman authored Apr 3, 2024
2 parents 1881f6c + b614b7e commit d217d00
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,39 @@

This is a Drupal 9 installation profile for OS2forms project.

## Create a new drupal 9 project with dev stability to allow all required packages to be installed.
## Create a new drupal 9 project

1) Create a new drupal project.
```
Setting the stability to dev to allow all required packages to be installed and
also enable patching.

* Create a new drupal project.

```shell
composer create-project drupal/recommended-project:^9.0 os2forms
```

2) Change composer config.
```
* Change composer config.

```shell
composer config --no-plugins allow-plugins.zaporylie/composer-drupal-optimizations true
composer config --no-plugins allow-plugins.cweagans/composer-patches true
composer config --no-plugins allow-plugins.simplesamlphp/composer-module-installer true
composer config minimum-stability dev
```

3) Require the components of an os2forms project.
Set stability and ensure that patching is enabled. It will not automatically be
enabled by the `composer.json` files in the os2form profile.

```shell
composer config --json minimum-stability dev
composer config --json extra.enable-patching true
```
composer require "os2forms/os2forms:^3.3" "os2forms/os2forms_forloeb:^2.5" "os2forms/os2forms_forloeb_profile:^1.11" --with-all-dependencies

* Require the components of an os2forms project.

```shell
composer require "os2forms/os2forms:^3.3" "os2forms/os2forms_forloeb_profile:^1.11" --with-all-dependencies
```

### Install the os2forms_forloeb_profile

See https://www.drush.org/latest/commands/site_install

0 comments on commit d217d00

Please sign in to comment.