1010OS2loop is a question-answering system built on Drupal 9. See [ os2.eu/produkt/os2loop] ( https://os2.eu/produkt/os2loop )
1111(in Danish) for more information.
1212
13+ ## Upgrading to Drupal 10
14+
15+ Upgrading to [ Drupal 10] ( https://www.drupal.org/about/10 ) is a two-step process:
16+ first the site must be prepared for the upgrade ([ tag:
17+ d-10-prepare] ( /releases/tag/d-10-prepare ) ) and then the actual upgrade must be
18+ performed.
19+
20+ ``` sh
21+ # Backup the database
22+
23+ # Prepare for the upgrade
24+ git checkout d-10-prepare
25+ composer install --no-dev --optimize-autoloader
26+ vendor/bin/drush --yes pm:uninstall samlauth
27+ vendor/bin/drush --yes deploy
28+ vendor/bin/drush --yes locale:update
29+ vendor/bin/drush --yes cache:rebuild
30+
31+ # Check that site still works
32+
33+ # Upgrade to Drupal 10
34+ git checkout «release tag»
35+ composer install --no-dev --optimize-autoloader
36+ vendor/bin/drush --yes deploy
37+ vendor/bin/drush --yes locale:update
38+ vendor/bin/drush --yes cache:rebuild
39+ ```
40+
1341## Installation
1442
1543### Production
@@ -54,14 +82,15 @@ modules.
5482
5583See [ docs/development] ( docs/development/README.md ) for details on development.
5684
85+ [ Install Task] ( https://taskfile.dev/installation/ ) and run
86+
5787``` sh
58- docker compose up --detach
59- docker compose exec phpfpm composer install
60- docker compose exec phpfpm vendor/bin/drush --yes site:install os2loop --existing-config
88+ task dev:up
89+ task dev:install-site --yes
6190# Get the site url
6291echo " http://$( docker compose port nginx 8080) "
6392# Get admin sign in url
64- docker compose exec phpfpm vendor/bin/ drush --yes --uri=" http://$( docker compose port nginx 8080) " user:login
93+ task dev: drush -- --yes --uri=" http://$( docker compose port nginx 8080) " user:login
6594```
6695
6796### Modules
@@ -100,11 +129,11 @@ docker compose exec phpfpm vendor/bin/drush --yes pm:enable entity_reference_int
100129## Updates
101130
102131``` sh
103- composer install --no-dev --optimize-autoloader
104- vendor/bin/drush --yes updatedb
105- vendor/bin/drush --yes config:import
106- vendor/bin/drush --yes locale:update
107- vendor/bin/drush --yes cache:rebuild
132+ docker compose exec phpfpm composer install --no-dev --optimize-autoloader
133+ docker compose exec phpfpm vendor/bin/drush --yes updatedb
134+ docker compose exec phpfpm vendor/bin/drush --yes config:import
135+ docker compose exec phpfpm vendor/bin/drush --yes locale:update
136+ docker compose exec phpfpm vendor/bin/drush --yes cache:rebuild
108137```
109138
110139## Translations
@@ -132,14 +161,14 @@ for further details.
132161## Coding standards
133162
134163``` sh
135- composer coding-standards-check
136- composer coding-standards-apply
164+ docker compose exec phpfpm composer coding-standards-check
165+ docker compose exec phpfpm composer coding-standards-apply
137166```
138167
139168``` sh
140- docker run --rm --volume ${PWD} :/app --workdir /app node:16 yarn install
141- docker run --rm --volume ${PWD} :/app --workdir /app node:16 yarn coding-standards-check
142- docker run --rm --volume ${PWD} :/app --workdir /app node:16 yarn coding-standards-apply
169+ docker compose run --rm node yarn install
170+ docker compose run --rm node yarn coding-standards-check
171+ docker compose run --rm node yarn coding-standards-apply
143172```
144173
145174### GitHub Actions
@@ -163,18 +192,16 @@ act -P ubuntu-latest=shivammathur/node:focal pull_request
163192To run only twigcs:
164193
165194``` sh
166- composer coding-standards-check/twigcs
195+ docker compose exec phpfpm composer coding-standards-check/twigcs
167196```
168197
169198But this is also a part of
170199
171200``` sh
172- composer coding-standards-check
201+ docker compose exec phpfpm composer coding-standards-check
173202```
174203
175- ## Build assets
204+ ## Build theme assets
176205
177- ``` sh
178- docker run --rm --volume ${PWD} :/app --workdir /app node:16 yarn install
179- docker run --rm --volume ${PWD} :/app --workdir /app node:16 yarn encore dev
180- ```
206+ See
207+ [ os2loop_theme/README.md] ( web/profiles/custom/os2loop/themes/os2loop_theme/README.md ) .
0 commit comments