OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
feat(docs): cleanup/add markdown fence languages
as-op27bcaa9acfe4
diff --git a/docs/api/apiv3/example/README.md b/docs/api/apiv3/example/README.mdindex 149aa23de91..628b620656c 100644--- a/docs/api/apiv3/example/README.md+++ b/docs/api/apiv3/example/README.md@@ -170,12 +170,12 @@ Using the various available values, the client can now construct a body that wilWhen constructing the body of the request, the difference between properties referencing resources according to HAL and those with scalar values also shows.All referencing properties (`project` and `type` in our case) are noted in the `_links` section and have an `href` property while the scalar values (`subject` in our case) are provided on the root level.-```+```json5{- # Scalar values+ // Scalar values"subject": "abc","_links": {- # Resource values+ // Resource values"project": {"href": "some/url"}@@ -216,12 +216,12 @@ The set of available custom fields might change depending on the values providedAs some custom fields reference other resources (e.g. list and user) while others are scalar values (e.g. integer and float), setting the properties requires to have them set in different parts of the body payload. This is the same as for the `subject` property vs. the `project` property.The schema can instruct the client where to set them properly. All properties with an `availableValues` section either listing values themselves or linking to them need to be placed in the `_links` section of the payload.-```json+```json5{- # Scalar values+ // Scalar values"customFieldX": 123,"_links": {- # Resource values+ // Resource values"customFieldY": {"href": "some/url"}diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex e867a23f461..c918bd02d3f 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -71,7 +71,7 @@ info:Example:- ```bash+ ```shellAPI_KEY=2519132cdf62dcf5a66fd96394672079f9e9cad1curl -u apikey:$API_KEY https://community.openproject.com/api/v3/users/42```diff --git a/docs/api/apiv3/tags/baseline_comparisons.yml b/docs/api/apiv3/tags/baseline_comparisons.ymlindex 5e329c6fb87..f80027002b9 100644--- a/docs/api/apiv3/tags/baseline_comparisons.yml+++ b/docs/api/apiv3/tags/baseline_comparisons.yml@@ -46,7 +46,7 @@ description: |-The properties `timestamp`, `matchesFilters`, and `exists` are wrapped in a `_meta` section, which is added to each work-package element as well as to each element of the `attributesByTimestamp` array.- ```json+ ```json5// /api/v3/work_packages?timestamps=2022-01-01T00:00:00Z,PT0S{"_type": "WorkPackageCollection",@@ -128,7 +128,7 @@ description: |-To save bandwidth, only attributes that differ from the ones in the main work-package object are included in the `"attributesByTimestamp"`. Attributes with the same value as in the main work-package object are not included in the `"attributesByTimestamp"` section.- ```json+ ```json5// /api/v3/work_packages?timestamps=2022-01-01T00:00:00Z,PT0S{"_type": "WorkPackageCollection",@@ -173,7 +173,7 @@ description: |-To find out whether a work package matches the given set of filter criteria at a certain timestamp, check the `"matchesFilters"` property in the `"_meta"` section for that timestamp:- ```json+ ```json5// /api/v3/work_packages?filters=...×tamps=2022-01-01T00:00:00Z,PT0S{"_type": "WorkPackageCollection",@@ -217,7 +217,7 @@ description: |-To find out whether a work package has existed at a requested timestamp, check the `"exists"` property in the `"_meta"` section for that timestamp:- ```json+ ```json5// /api/v3/work_packages?timestamps=2022-01-01T00:00:00Z,PT0S{"_type": "WorkPackageCollection",diff --git a/docs/api/apiv3/tags/filters.yml b/docs/api/apiv3/tags/filters.ymlindex 02419f94cd7..b0d66bc84e9 100644--- a/docs/api/apiv3/tags/filters.yml+++ b/docs/api/apiv3/tags/filters.yml@@ -14,10 +14,10 @@ description: |-The filter syntax is a JSON object that can be passed as a GET parameter to the endpoints as an URL-encoded JSON string looks like the following:- ```json+ ```json5[{ "<filter name>": { "operator": "<operator>", "values": [<value>, ...] } },- ...+ // ...]```diff --git a/docs/api/apiv3/tags/schemas.yml b/docs/api/apiv3/tags/schemas.ymlindex c300171b97c..e962715701f 100644--- a/docs/api/apiv3/tags/schemas.yml+++ b/docs/api/apiv3/tags/schemas.yml@@ -102,7 +102,7 @@ description: |-The following excerpt exemplifies the objects that can be found as a value of the `dependencies` property:- ```+ ```json{"_type": "SchemaDependency","on": "someProperty",diff --git a/docs/api/apiv3/tags/signaling.yml b/docs/api/apiv3/tags/signaling.ymlindex dc2fbe5715c..168ba8f31a2 100644--- a/docs/api/apiv3/tags/signaling.yml+++ b/docs/api/apiv3/tags/signaling.yml@@ -10,7 +10,7 @@ description: |-For example, a resource `/api/v3/bogus` that without signaling returns:- ```+ ```json{"_type": "Collection""count": 20,@@ -42,7 +42,7 @@ description: |-can via signaling `/api/v3/bogus?select=total,elements/name,bar` be instructed to return:- ```+ ```json{"total": 554,"_embedded": {diff --git a/docs/development/concepts/dynamic-forms/README.md b/docs/development/concepts/dynamic-forms/README.mdindex 6ac725bfed1..5d6c0dfd71d 100644--- a/docs/development/concepts/dynamic-forms/README.md+++ b/docs/development/concepts/dynamic-forms/README.md@@ -34,13 +34,13 @@ With an [access token or other means of API authentication](../../../api/introdu-```json+```json5{"_type": "Form","_embedded": {"payload": {- "name": "",- ...+ "name": ""+ // ...},"schema": {"name": {@@ -52,8 +52,8 @@ With an [access token or other means of API authentication](../../../api/introdu"minLength": 1,"maxLength": 255,"options": {}- },- ....+ }+ // ...},"validationErrors": {"name": {diff --git a/docs/development/concepts/hal-resources/README.md b/docs/development/concepts/hal-resources/README.mdindex a50f0b61cfb..33eacd3e95c 100644--- a/docs/development/concepts/hal-resources/README.md+++ b/docs/development/concepts/hal-resources/README.md@@ -48,7 +48,7 @@ The following is an example HAL JSON for a work package as it is retrieved by th-```JSON+```json5{"_type": "WorkPackage","id": 34250,@@ -87,7 +87,7 @@ The following is an example HAL JSON for a work package as it is retrieved by th"href": "/api/v3/statuses/7","title": "confirmed"}- ...+ // ...},"_embedded": {"project": {@@ -107,7 +107,7 @@ The following is an example HAL JSON for a work package as it is retrieved by th"href": "/api/v3/projects/14","title": "OpenProject"}- ...+ // ...}},"status": {@@ -237,4 +237,4 @@ In order to turn the JSON properties from `_embedded` and `_links` into writable## Discussions- Due to the dynamic properties of the HAL resource, it traditionally has an index map to `any` which is the source of many typing issues and in turn, quite a number of bugs: [hal-resource.ts](https://github.com/opf/openproject/blob/dev/frontend/src/app/features/hal/resources/hal-resource.ts#L63)-- The way HAL resources work by embedding and allowing to load\ No newline at end of file+- The way HAL resources work by embedding and allowing to loaddiff --git a/docs/development/concepts/inline-editing/README.md b/docs/development/concepts/inline-editing/README.mdindex 1dee1444a26..e675e0e444b 100644--- a/docs/development/concepts/inline-editing/README.md+++ b/docs/development/concepts/inline-editing/README.md@@ -47,26 +47,28 @@ The display fields handle showing read-only representation of a resource's attriSince OpenProject can also have dynamic custom fields with varying formats, the frontend cannot know all potential attribute names and their types. Instead, the available attributes of a resource are retrieved from its associated [schema resource](../resource-schemas/). For display fields, the important part of the schema definition for an attribute is its `type` attribute. Take a look at the JSON schema response for projects at the community: [community.openproject.com/api/v3/projects/schema](https://community.openproject.com/api/v3/projects/schema). For the sake of brevity, the following JSON will only show two of the returned attributes: The name and status attribute description:-```json-"name": {- "type": "String",- "name": "Name",- "required": true,- "hasDefault": false,- "writable": true,- "minLength": 1,- "maxLength": 255,- "options": {}-},-"status": {- "type": "ProjectStatus",- "name": "Status",- "required": false,- "hasDefault": false,- "writable": true,- "options": {}-},-...+```json5+{+ "name": {+ "type": "String",+ "name": "Name",+ "required": true,+ "hasDefault": false,+ "writable": true,+ "minLength": 1,+ "maxLength": 255,+ "options": {}+ },+ "status": {+ "type": "ProjectStatus",+ "name": "Status",+ "required": false,+ "hasDefault": false,+ "writable": true,+ "options": {}+}+// ...+}```The `type` property will decide that for name, we're looking for a display field that can handle `String` type, while for the project `status` attribute, we're looking for a specific display type called `ProjectStatus`.diff --git a/docs/development/concepts/resource-schemas/README.md b/docs/development/concepts/resource-schemas/README.mdindex c3283e6d38c..07e0ec83653 100644--- a/docs/development/concepts/resource-schemas/README.md+++ b/docs/development/concepts/resource-schemas/README.md@@ -49,18 +49,20 @@ The resulting schema JSON is an object with properties that look like the follow-```json-"property": {- "type": "String",- "name": "Schema property",- "required": true,- "hasDefault": false,- "writable": true,- "minLength": 1,- "maxLength": 255,- "options": { /** */ }-},-...+```json5+{+ "property": {+ "type": "String",+ "name": "Schema property",+ "required": true,+ "hasDefault": false,+ "writable": true,+ "minLength": 1,+ "maxLength": 255,+ "options": { /** */ }+ }+//...+}```diff --git a/docs/development/concepts/stimulus/README.md b/docs/development/concepts/stimulus/README.mdindex 7d5dd7f24c5..fab16b7da83 100644--- a/docs/development/concepts/stimulus/README.md+++ b/docs/development/concepts/stimulus/README.md@@ -29,7 +29,7 @@ To dynamically load a controller, it needs to live under `frontend/src/stimulus/In DOM, you'll tell the application the controller is dynamically loaded using the `data-application-target="dynamic"`attribute. It tells the application controller (`frontend/src/stimulus/controllers/op-application.controller.ts`) we load on every page on body to dynamically import and load the controller named `users`.-```HTML+```html<div data-controller="users" data-application-target="dynamic"></div>```diff --git a/docs/development/concepts/wysiwyg-editor/README.md b/docs/development/concepts/wysiwyg-editor/README.mdindex be113012a0f..c3d5e3e3593 100644--- a/docs/development/concepts/wysiwyg-editor/README.md+++ b/docs/development/concepts/wysiwyg-editor/README.md@@ -72,10 +72,10 @@ CkEditor provides an alternative way to hook into the upcast and downcast (editiFor example, we could hook on the data downcast whenever a mention attribute is parsed with:-```+```javascripteditor.conversion.for( 'dataDowncast' ).add( dispatcher => {dispatcher.on( 'attribute:mention',- ( evt, data, conversionApi ) => {...},+ ( evt, data, conversionApi ) => {/*...*/},{ priority: 'high' } );})```@@ -89,7 +89,7 @@ CkEditor comes with a debugger inspector that will make the development processIn order to activate it, just import it (```import CKEditorInspector from '@ckeditor/ckeditor5-inspector';```) at the beginning of the ```op-config-customizer.js``` file and then attach it inside the editorClass.create method:-```+```javascriptreturn editorClass.create(wrapper, configuration).then(editor => {CKEditorInspector.attach(editor);@@ -113,7 +113,7 @@ In case it would be needed, it would be defined in the CommonMarkDataProcessor cDefine how the mention elements of the HTML input data are going to be represented in the ckEditor's Model:-```+```javascripteditor.conversion.for( 'upcast' ).elementToAttribute( {@@ -151,7 +151,7 @@ This is defined in the CkEditor plugin (```mentions-caster.js```).Define how the mention attribute is going to be represented in the ckEditor's UI (Editing View):-```+```javascripteditor.conversion.for('editingDowncast').attributeToElement({@@ -186,7 +186,7 @@ This is defined in the CkEditor plugin (```mentions-caster.js```).Define how the mention attribute is going to be represented in the ckEditor's output (Data View):-```+```javascripteditor.conversion.for('dataDowncast').attributeToElement({@@ -223,7 +223,7 @@ The model update of the mentions when the user adds or removes a mention is handDefine how the HTML mention tags are going to be represented in the markdown. They should be placed as strings, so we need to turn any mention element into its string representation:-```+```javascriptturndownService.addRule( 'mentions', {filter: (node) => {return (diff --git a/docs/development/contribution-documentation/documentation-style-guide/README.md b/docs/development/contribution-documentation/documentation-style-guide/README.mdindex 2f73d0301ce..2aaafa1b6f1 100644--- a/docs/development/contribution-documentation/documentation-style-guide/README.md+++ b/docs/development/contribution-documentation/documentation-style-guide/README.md@@ -191,7 +191,7 @@ In these cases, use `<` customize `>` to call out where a reader must replace teFor example:-```+```shellcp <your_source_directory> <your_destination_directory>```@@ -459,7 +459,7 @@ At the moment it is not possible for external contributors to upload videos to tUse alert boxes to call attention to information. The alert boxes in the OpenProject documentation have a specific format. Please use the following to be consistent:-```+```markdown> **Note**: If you do not have an OpenProject installation yet, please visit our site on [how to create an OpenProject trial installation](../../enterprise-guide/enterprise-cloud-guide/#create-a-new-account).```diff --git a/docs/development/create-omniauth-plugin/README.md b/docs/development/create-omniauth-plugin/README.mdindex 755b607f5c0..9c4468bc4d2 100644--- a/docs/development/create-omniauth-plugin/README.md+++ b/docs/development/create-omniauth-plugin/README.md@@ -40,7 +40,7 @@ In the following section we will go through the basic steps required to create aFirst off you can use the [plugin generator](https://github.com/opf/openproject-plugins) to create a basic plugin to base yours on.How to do that is described [here](../create-openproject-plugin/). In short it’s the following command:-```bash+```shell# in OpenProject directoryrails generate open_project:plugin my_auth_plugin path/to/where/you/want/to/have/it```@@ -57,7 +57,7 @@ E.g. for twitter ‘omniauth twitter’ will lead you to [this](https://github.cIf you want to use settings for your plugin in order to configure your authentication provider you will have to register them in `lib/open_project/my_auth_plugin/engine.rb` by adding them to the already generated plugin registration call like this:-```+```rubyregister 'openproject-my_auth_plugin',:author_url => 'Hans Wurst',:requires_openproject => '>= 3.1.0',@@ -66,7 +66,7 @@ register 'openproject-my_auth_plugin',You can access your plugin’s settings like this:-```+```rubyserver_addr = Setting.plugin_openproject_my_auth_plugin["auth_server_address"]```@@ -108,7 +108,7 @@ For instance you could configure two OpenID Connect providers using the same strAll that’s that left to do is declaring your plugin in the file `Gemfile.plugins` in your OpenProject application’s root directory.If you haven’t published it as a gem yet you can also use a local copy:-```+```rubygem "openproject-auth_plugins", :git => 'https://github.com/opf/openproject-auth_plugins.git', :branch => 'dev'gem 'openproject-my_auth_plugin', :path => 'plugins/openproject-my_auth_plugin'```diff --git a/docs/development/create-openproject-plugin/README.md b/docs/development/create-openproject-plugin/README.mdindex b8d65e02142..245f722158b 100644--- a/docs/development/create-openproject-plugin/README.md+++ b/docs/development/create-openproject-plugin/README.md@@ -6,7 +6,7 @@ OpenProject plugins are special ruby gems. You may include them in your `GemfileYou can generate a new plugin directly from OpenProject. Think of a good name and a place (in your filesystem) where the plugin should go. In this example, we have a `plugins` directory right next to the `openproject` directory. Then do-```bash+```shellbundle exec rails generate open_project:plugin my_plugin ../plugins/```@@ -24,7 +24,7 @@ Instead of generating a new plugin you can also just clone the example plugin anTo include the new plugin into OpenProject, we have to add it into `Gemfile.plugins` like any other OpenProject plugin. Add the following lines to `Gemfile.plugins`:-```+```rubygroup :opf_plugins dogem "openproject-my_plugin", :path => '../plugins/openproject-my_plugin'end@@ -34,7 +34,7 @@ If there already is an `opf_plugins` group, just add the `gem` line to it.Once you've done that install it via-```bash+```shellbundle install```@@ -64,7 +64,7 @@ A code review should check the whole code and remove glitches like:1. Check the license and the copyright of the plugin to be releasedUsually, this should be GPLv3 and we are the copyright owner. However, some plugins might have additional authors or might originate from code with a different license. These issues have to be resolved first. Also check the years in the copyright. If you need to find all contributors of a repository including their contribution period use the following rake task:- ```bash+ ```shellrake copyright:authors:show['../Path/to/repository/']```@@ -88,13 +88,13 @@ There should be a file README.md containing:If you’re unsure about if/who to give credit, you should take a look into the changelog:-```bash+```shellgit log --pretty=format:%aN | sort | uniq -c | sort -rn```For your convenience you may use the following rake task, that extracts all authors from a repository-```bash+```shellrake copyright:authors:show['../Path/to/repository/']```diff --git a/docs/development/development-environment-docker-macos/README.md b/docs/development/development-environment-docker-macos/README.mdindex b00bbdfa2ad..a8713ce26ed 100644--- a/docs/development/development-environment-docker-macos/README.md+++ b/docs/development/development-environment-docker-macos/README.md@@ -20,7 +20,7 @@ As Docker runs in a virtual machine, a shared filesystem is needed and applicatiThe following is a benchmark performed on a _MacBook Pro, 2019 16 GB 2667 MHz DDR4 2.3 GHz 8-Core Intel Core i9_-```sh+```shell$ time docker compose exec backend-test bundle exec rspec spec/models/work_package_spec.rb```@@ -35,13 +35,13 @@ $ time docker compose exec backend-test bundle exec rspec spec/models/work_packa_Ref Quick Start Guide [here](https://docs.orbstack.dev/quick-start)_-```sh+```shell$ brew install orbstack```**Note:** You can use Docker contexts to run OrbStack and Docker Desktop side-by-side. Switching contexts affects all Docker commands you run from that point on. [Ref: Side-by-side](https://docs.orbstack.dev/install#reverting)-```sh+```shell# Switch to OrbStackdocker context use orbstack# Switch to Docker Desktop@@ -50,6 +50,6 @@ docker context use desktop-linuxTo view the list of docker contexts run:-```sh+```shell$ docker context ls```diff --git a/docs/development/development-environment-docker/README.md b/docs/development/development-environment-docker/README.mdindex 3e823bd13f1..7211c67909e 100644--- a/docs/development/development-environment-docker/README.md+++ b/docs/development/development-environment-docker/README.md@@ -369,7 +369,7 @@ take over to your custom `docker-compose.override.yml` in the repository root.In addition, we need to alter the environmental variables used in the new overrides. So we need to amend the `.env` filelike that:-```text+```shellOPENPROJECT_DEV_HOST=openproject.localOPENPROJECT_DEV_URL=https://${OPENPROJECT_DEV_HOST}```diff --git a/docs/development/development-environment-osx/README.md b/docs/development/development-environment-osx/README.mdindex e5ee9ce2f9c..a00450e234f 100644--- a/docs/development/development-environment-osx/README.md+++ b/docs/development/development-environment-osx/README.md@@ -29,7 +29,7 @@ Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv is a ruby version manager that lets you quickly switch between ruby versions.ruby-build is an addon to rbenv that installs ruby versions.-```bash+```shell# Install$ brew install rbenv ruby-build# Initialize rbenv@@ -44,20 +44,20 @@ At the time of this writing, the latest stable version is `3.2.1`, which we alsoWe suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` lineand install that version.-```bash+```shell# Install the required version as read from the Gemfilerbenv install 3.2.1```This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to globally activate this version-```bash+```shellrbenv global 3.2.1```You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.-```bash+```shellgem install bundler```@@ -65,7 +65,7 @@ gem install bundlerNext, install a PostgreSQL database. If you wish to use a MySQL database instead and have installed one, skip these steps.-```bash+```shell# Install postgres database$ brew install postgres@@ -75,14 +75,14 @@ $ postgres -D /usr/local/var/postgresThen, create the OpenProject database user and accompanied database.-```bash+```shell$ createuser -d -P openproject```You will be prompted for a password, for the remainder of these instructions, we assume its `openproject-dev-password`.Now, create the database `openproject_dev` and `openproject_test` owned by the previously created user.-```bash+```shell$ createdb -O openproject openproject_dev$ createdb -O openproject openproject_test```@@ -93,7 +93,7 @@ We will install the latest LTS version of Node.js via [nodenv](https://github.co### Install nodenv and node-build-```bash+```shell# Install$ brew install nodenv node-build# Initialize nodenv@@ -106,14 +106,14 @@ You can find the latest LTS version here: [nodejs.org/en/download](https://nodejAt the time of writing this is v16.17.0. Install and activate it with:-```bash+```shellnodenv install 16.17.0nodenv global 16.17.0```### Update NPM to the latest version-```bash+```shellnpm install npm@latest -g```@@ -121,7 +121,7 @@ npm install npm@latest -gYou should now have an active ruby and node installation. Verify that it works with these commands.-```bash+```shell$ ruby --versionruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]@@ -137,7 +137,7 @@ npm --version# Install OpenProject-```bash+```shell# Download the repositorygit clone https://github.com/opf/openproject.gitcd openproject@@ -150,14 +150,14 @@ So, if you want to develop a feature, create a feature branch from a current `deCreate and configure the database configuration file in `config/database.yml` (relative to the openproject-directory.-```bash+```shellvim config/database.yml```Now edit the `config/database.yml` file and insert your database credentials.It should look like this (just with your database name, username, and password):-```+```yamldefault: &defaultadapter: postgresqlencoding: unicode@@ -184,13 +184,13 @@ Install code dependencies, link plugin modules and export translation files.- link plugin frontend modules- and export frontend localization files-```bash+```shellbin/setup_dev```Now, run the following tasks to migrate and seed the dev database, and prepare the test setup for running tests locally.-```bash+```shellRAILS_ENV=development bin/rails db:seed```1@@ -201,7 +201,7 @@ run `overmind` as a daemon and connect to services individually.The `bin/dev` command will first check if `overmind` is available and run the application if via `Procfile.dev` if possible. If not,it falls back to `foreman`, installing it if needed.-```bash+```shellbin/dev```@@ -211,7 +211,7 @@ project as `.env` and [configure values](https://github.com/DarthSim/overmind/trBy default a worker process will also be started. In development asynchronous execution of long-running background tasks (sending emails, copying projects,etc.) may be of limited use and it has known issues with regards to memory (see background worker section below). To disable the worker process:-```bash+```shellecho "OVERMIND_IGNORED_PROCESSES=worker" >> .overmind.env```@@ -228,7 +228,7 @@ To run OpenProject manually, you need to run the rails server and the webpack fr### Rails web server-```bash+```shellRAILS_ENV=development bin/rails server```@@ -238,7 +238,7 @@ This will start the development server on port `3000` by default.To run the frontend server, please run-```bash+```shellRAILS_ENV=development npm run serve```@@ -249,7 +249,7 @@ You can then access the application either through `localhost:3000` (Rails serve### Delayed Job background worker-```bash+```shellRAILS_ENV=development bin/rails jobs:work```@@ -267,7 +267,7 @@ The delayed_job background worker reloads the application for every job in develIf you haven't run this command for a while, chances are that a lot of background jobs have queued up and might cause a significant amount of open tabs (due to the way we deliver mails with the letter_opener gem). To get rid of the jobs before starting the worker, use the following command. **This will remove all currently scheduled jobs, never use this in a production setting.**-```bash+```shellRAILS_ENV=development bin/rails runner "Delayed::Job.delete_all"```diff --git a/docs/development/development-environment-ubuntu/README.md b/docs/development/development-environment-ubuntu/README.mdindex b254b345289..30a784ef574 100644--- a/docs/development/development-environment-ubuntu/README.md+++ b/docs/development/development-environment-ubuntu/README.md@@ -26,7 +26,7 @@ We need an active Ruby and Node JS environment to run OpenProject. To this end,CPU recommendation: 4 CPUs, Memory recommendation: 8 better 16 GB (in general we need double the amount of a normal production installation)-```bash+```shellsudo apt-get updatesudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev libpq-dev libreadline-dev```@@ -40,7 +40,7 @@ Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv is a ruby version manager that lets you quickly switch between ruby versions.ruby-build is an addon to rbenv that installs ruby versions.-```bash+```shell# Install rbenv locally for the dev usergit clone https://github.com/rbenv/rbenv.git ~/.rbenv# Optional: Compile bash extensions@@ -60,7 +60,7 @@ source ~/.bashrcruby-build is an addon to rbenv that installs ruby versions-```bash+```shellgit clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build```@@ -72,14 +72,14 @@ At the time of this writing, the latest stable version is `3.2.1` which we alsoWe suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` lineand install that version.-```bash+```shell# Install the required version as read from the Gemfilerbenv install 3.2.1```This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to globally activate this version-```bash+```shellrbenv global 3.2.1rbenv rehash```@@ -92,13 +92,13 @@ If you get `Command 'gem' not found...` here, ensure you followed the instructioNext, install a PostgreSQL database.-```bash+```shell[dev@debian]# sudo apt-get install postgresql postgresql-client```Create the OpenProject database user and accompanied database.-```bash+```shellsudo su postgres[postgres@ubuntu]# createuser -d -P openproject```@@ -106,7 +106,7 @@ You will be prompted for a password, for the remainder of these instructions, weNow, create the database `openproject_dev` and `openproject_test` owned by the previously created user.-```bash+```shell[postgres@ubuntu]# createdb -O openproject openproject_dev[postgres@ubuntu]# createdb -O openproject openproject_test@@ -120,7 +120,7 @@ We will install the latest LTS version of Node.js via [nodenv](https://github.co### Install nodenv-```bash+```shell# Install nodenvgit clone https://github.com/nodenv/nodenv.git ~/.nodenv# Optional: Install bash extensions@@ -138,7 +138,7 @@ source ~/.bashrc### Install node-build-```bash+```shellgit clone https://github.com/nodenv/node-build.git $(nodenv root)/plugins/node-build```@@ -148,7 +148,7 @@ You can find the latest LTS version here: [nodejs.org/en/download/](https://nodeAt the time of writing this is v16.13.1 Install and activate it with:-```bash+```shellnodenv install 16.13.1nodenv global 16.13.1nodenv rehash@@ -156,7 +156,7 @@ nodenv rehash### Update NPM to the latest version-```bash+```shellnpm install npm@latest -g```@@ -164,7 +164,7 @@ npm install npm@latest -gYou should now have an active ruby and node installation. Verify that it works with these commands.-```bash+```shellruby --versionruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]@@ -185,7 +185,7 @@ This allows you to create branches and push changes and finally opening a pull rTo do that, go to [github.com/opf/openproject](https://github.com/opf/openproject) and press "Fork" on the upper right corner.-```bash+```shell# Download the repository# If you want to create a pull request, replace the URL with your own fork as described abovemkdir ~/dev@@ -201,14 +201,14 @@ So, if you want to develop a feature, create a feature branch from a current `deCreate and configure the database configuration file in `config/database.yml` (relative to the openproject-directory.-```bash+```shell[dev@debian]# vim config/database.yml```Now edit the `config/database.yml` file and insert your database credentials.It should look like this (just with your database name, username, and password):-```+```yamldefault: &defaultadapter: postgresqlencoding: unicode@@ -235,13 +235,13 @@ Install code dependencies, link plugin modules and export translation files.- link plugin frontend modules- and export frontend localization files-```bash+```shellbin/setup_dev```Now, run the following tasks to seed the dev database, and prepare the test setup for running tests locally.-```bash+```shellRAILS_ENV=development bin/rails db:seed```@@ -252,7 +252,7 @@ run `overmind` as a daemon and connect to services individually.The `bin/dev` command will first check if `overmind` is available and run the application if via `Procfile.dev` if possible. If not,it falls back to `foreman`, installing it if needed.-```bash+```shellbin/dev```@@ -262,7 +262,7 @@ project as `.env` and [configure values](https://github.com/DarthSim/overmind/trBy default a worker process will also be started. In development asynchronous execution of long-running background tasks (sending emails, copying projects,etc.) may be of limited use and it has known issues with regards to memory (see background worker section below). To disable the worker process:-```bash+```shellecho "OVERMIND_IGNORED_PROCESSES=worker" >> .overmind.env```@@ -279,7 +279,7 @@ To run OpenProject manually, you need to run the rails server and the webpack fr### Rails web server-```bash+```shellRAILS_ENV=development bin/rails server```@@ -289,7 +289,7 @@ This will start the development server on port `3000` by default.To run the frontend server, please run-```bash+```shellRAILS_ENV=development npm run serve```@@ -300,7 +300,7 @@ You can then access the application either through `localhost:3000` (Rails serve### Background job worker-```bash+```shellRAILS_ENV=development bin/rails jobs:work```@@ -320,7 +320,7 @@ The delayed_job background worker reloads the application for every job in develIf you haven't run this command for a while, chances are that a lot of background jobs have queued up and might cause a significant amount of open tabs (due to the way we deliver mails with the letter_opener gem). To get rid of the jobs before starting the worker, use the following command. **This will remove all currently scheduled jobs, never use this in a production setting.**-```bash+```shellRAILS_ENV=development bin/rails runner "Delayed::Job.delete_all"```diff --git a/docs/development/git-workflow/README.md b/docs/development/git-workflow/README.mdindex 9e3c83c5998..afb7adbcc81 100644--- a/docs/development/git-workflow/README.md+++ b/docs/development/git-workflow/README.md@@ -51,37 +51,37 @@ For contributing source code, please follow the git workflow below:- Use GitHub UI to fork the [OpenProject repository](https://github.com/opf/openproject).- Clone your fork to your development machine:-```+```shellgit clone [email protected]/<username>/openproject```Make sure you're on the right branch. The main development branch is `dev`:-```+```shellgit checkout dev```Add the original OpenProject repository as a remote, so you can fetch changes:-```+```shellgit remote add upstream [email protected]:opf/openproject```Update your local git branch to the core branch-```+```shellgit pull upstream/dev```Create a feature branch:-```+```shellgit checkout -b feature/<short description of your feature>```Make your changes, then push the branch into your **own** repository:-```+```shellgit push origin <your feature branch>```diff --git a/docs/development/kerberos/README.md b/docs/development/kerberos/README.mdindex 1fb5764192d..6ba63a4c4a9 100644--- a/docs/development/kerberos/README.md+++ b/docs/development/kerberos/README.md@@ -27,7 +27,7 @@ To test Kerberos, you'll need to setup a local kerberos admin and kdc server. ThFirst, install kdc and admin server:-```+```shellapt install krb5-kdc krb5-admin-server krb5-config -y```@@ -112,7 +112,7 @@ The OpenProject Apache module for kerberos will call the kerberos with its own sIn the `kadmin.local` prompt, run this:-```+```shelladdprinc -randkey HTTP/openproject.local```@@ -120,12 +120,12 @@ Note that this will not require a password prompt.This adds a principal for the HTTP/openproject.local service. Next, add it to a keyfile at `/etc/apache2/openproject.keytab`:-```+```shellktadd -k /etc/apache2/openproject.keytab HTTP/openproject.local```Exit the `kadmin.local` console. Make sure the file is readable by apache2:-```+```shellchown www-data:www-data /etc/apache2/openproject.keytabchmod 400 /etc/apache2/openproject.keytab```@@ -136,7 +136,7 @@ chmod 400 /etc/apache2/openproject.keytabFirst, install the GSSAPI apache module with:-```+```shellapt install libapache2-mod-auth-gssapi```@@ -146,7 +146,7 @@ Add the customization dir `mkdir -p /etc/openproject/addons/apache2/custom/vhostAdd the following contents:-```+```apache<Location />AuthType GSSAPI# The Basic Auth dialog name shown to the user@@ -189,7 +189,7 @@ If your OpenProject installation isn't yet running under `openproject.local`, ruThe rest is the same as the production config. You need to tell OpenProject to use header based SSO:-```+```shellopenproject config:set OPENPROJECT_AUTH__SOURCE__SSO_HEADER="X-Authenticated-User"openproject config:set OPENPROJECT_AUTH__SOURCE__SSO_SECRET="MyPassword"```diff --git a/docs/development/localhost-ssl/README.md b/docs/development/localhost-ssl/README.mdindex e779c80feb3..86f6c8edc13 100644--- a/docs/development/localhost-ssl/README.md+++ b/docs/development/localhost-ssl/README.md@@ -11,7 +11,7 @@ closely matches the way OpenProject is run in production systems for packaged anYou will need a certificate to terminate SSL requests at Apache. For development purposes only, create a self-signedcertificate as follows:-```bash+```shellsudo mkdir -p /etc/ssl/openproject-dev/sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/openproject-dev/privkey.key -out /etc/ssl/openproject-dev/cert.crt```@@ -29,7 +29,7 @@ it.First, you'll need to install the Apache2 web server. The actual command will differ depending on your actualdistribution. For apt-based systems, the following command is used:-```bash+```shellsudo apt-get install apache2```@@ -39,7 +39,7 @@ are being loaded.You will then add a configuration for OpenProject under:-```bash+```shellnano /etc/apache2/sites-available/openproject-dev-ssl.conf```@@ -47,7 +47,7 @@ The path might differ. For RHEL/Fedora systems, the configuration directory resiThe following contains an exemplary configuration:-```+```apache<VirtualHost *:80>ServerName openproject.example.comredirect permanent / https://openproject.example.com/diff --git a/docs/development/profiling/README.md b/docs/development/profiling/README.mdindex d1d58e987f2..c340639c875 100644--- a/docs/development/profiling/README.md+++ b/docs/development/profiling/README.md@@ -6,7 +6,7 @@ In case the application performs poorly when serving a request, profiling can heThe default web server OpenProject runs on is [puma](https://puma.io/), which is threaded. The profiling tool used is [rack-mini-profiler](https://github.com/MiniProfiler/rack-mini-profiler) which makes use of i.e. [stackprof](https://github.com/tmm1/stackprof). Those tools cannot work in a threaded environment which is why [thin](https://github.com/macournoyer/thin) needs to be employed. This is achieved by adding-```+```shellgem 'thin'```@@ -20,13 +20,13 @@ Then run `bundle install` or `CUSTOM_PLUGIN_GEMFILE=Gemfile.profiling bundle insSince thin is to be used, and the profiling gems are to be loaded, the application needs to be started like this:-```+```shellOPENPROJECT_RACK_PROFILER_ENABLED=true thin start```or, if a custom gemfile includes the reference to thin, use the following:-```+```shellCUSTOM_PLUGIN_GEMFILE=gemfile.profiling OPENPROJECT_RACK_PROFILER_ENABLED=true thin start```@@ -37,7 +37,7 @@ To avoid this, the application can be started in production mode but before this* `config/initializers/rack_profilier.rb`* `config/initializers/secure_headers.rb`* Read the profiling gems to your `Gemfile`/`Gemfile.local`/`Gemfile.profiling` since they would otherwise only be available in the development environment:-```+```rubygem 'flamegraph'gem 'rack-mini-profiler'gem 'ruby-prof'@@ -45,7 +45,7 @@ gem 'stackprof'```Start thin via:-```+```shellSECRET_KEY_BASE='abcd' RAILS_ENV=production CUSTOM_PLUGIN_GEMFILE=gemfile.profiling OPENPROJECT_RACK_PROFILER_ENABLED=true thin start```diff --git a/docs/development/running-tests/README.md b/docs/development/running-tests/README.mdindex 554b5a3bfd3..2ba9d8c18dd 100644--- a/docs/development/running-tests/README.md+++ b/docs/development/running-tests/README.md@@ -36,7 +36,7 @@ Click on the Details link to see the individual *jobs* that GitHub executes.Click on each job and each step to show the [log output for this job](https://github.com/opf/openproject/pull/9355/checks?check_run_id=2730782867). It will contain more information about how many tests failed and will also temporarily provide a screenshot of the browser during the occurrence of the test failure (only if a browser was involved in testing).In our example, multiple tests are reported as failing:-```+```shellrspec ./spec/features/work_packages/pagination_spec.rb[1:1:1:1] # Work package pagination with project scope behaves like paginated work package list is expected not to have text "WorkPackage No. 23"rspec ./spec/features/work_packages/pagination_spec.rb[1:2:1:1] # Work package pagination globally behaves like paginated work package list is expected not to have text "WorkPackage No. 29"rspec ./spec/features/work_packages/timeline/timeline_navigation_spec.rb:131 # Work package timeline navigation can save the open state and zoom of timeline@@ -75,13 +75,13 @@ You will be able to run failing tests locally in a similar fashion for all errorThere is a small ruby script that will parse the logs of a GitHub Actions run and output all `rspec` tests that failed for you to run in one command.-```+```shell./script/github_pr_errors```If you want to run the tests directly to rspec, you can use this command:-```+```shell./script/github_pr_errors | xargs bundle exec rspec```@@ -178,7 +178,7 @@ The configuration above determines that a database called `openproject_test` isBefore you can start testing, you will often need to run the database migrations first on the development and the test database. You can use the following rails command for this:-```bash+```shellRAILS_ENV=development rails db:migrate db:test:prepare```@@ -194,13 +194,13 @@ To run JavaScript frontend tests, first ensure you have all necessary dependenciYou can run all frontend tests with the standard npm command:- npm test--+```shell+npm test+```Alternatively, when in the `frontend/` folder, you can also use the watch mode of Angular to automatically run tests after you changed a file in the frontend.-```bash+```shell./node_modules/.bin/ng test --watch```@@ -210,13 +210,13 @@ Alternatively, when in the `frontend/` folder, you can also use the watch mode oAfter following the prerequisites, use the following command to run individual specs:-```bash+```shellRAILS_ENV=test bundle exec rspec spec/models/work_package_spec.rb```Run multiple specs by separating them with spaces:-```bash+```shellRAILS_ENV=test bundle exec rspec spec/models/work_package_spec.rb spec/models/project_spec.rb```@@ -228,7 +228,7 @@ System tests are also called *rspec feature specs* and use [Capybara](https://ruSystem tests are located in `spec/features`. Use the following command to run individual test:-```bash+```shellRAILS_ENV=test bundle exec rspec spec/features/auth/login_spec.rb```@@ -248,7 +248,7 @@ Almost all system tests depend on the browser for testing, you will need to haveSo with `npm run serve` running and completed in one tab, run the test using `rspec` as for the unit tests:-```bash+```shellRAILS_ENV=test bundle exec rspec ./modules/documents/spec/features/attachment_upload_spec.rb[1:1:1:1]```@@ -258,7 +258,7 @@ The tests will generally run a lot slower due to the whole application being runYou can also run *all* feature specs locally with this command. This is not recommended due to the required execution time. Instead, prefer to select individual tests that you would like to test and let GitHub Actions CI test the entire suite.-```bash+```shellRAILS_ENV=test bundle exec rake parallel:features -- --group-number 1 --only-group 1```@@ -289,7 +289,7 @@ The download is a JAR, i.e. a Java application. You will also need to download aIn your powershell on Windows, find the JAR you downloaded in the previous step and run it like this:-```+```shelljava -jar .\Downloads\selenium-server-standalone-3.141.59.jar -host 192.168.0.216```@@ -303,7 +303,7 @@ Usually this should work transparently but it doesn't always. So we'll make sureNow in the linux world do the following variables:-```+```shellexport RAILS_ENV=testexport CAPYBARA_APP_HOSTNAME=`hostname -I`export SELENIUM_GRID_URL=http://192.168.0.216:4444/wd/hub@@ -316,7 +316,7 @@ Setting this make sure the browser in Windows will try to access, for instance `Now you can run the integration tests as usual as seen above. For instance like this:-```+```shellbundle exec rspec ./modules/documents/spec/features/attachment_upload_spec.rb[1:1:1:1]```@@ -361,7 +361,7 @@ See its GitHub page for any options like number of cpus used.By default, `parallel_test` will use CPU count to parallelize. This might be a bit much to handle for your system when 8 or more parallel browser instances are being run. To manually set the value of databases to create and tests to run in parallel, use this command:-```bash+```shellexport PARALLEL_TEST_PROCESSORS=4```@@ -369,7 +369,7 @@ export PARALLEL_TEST_PROCESSORS=4Adjust `database.yml` to use different databases:-```yml+```yamltest: &testdatabase: openproject_test<%= ENV['TEST_ENV_NUMBER'] %># ...@@ -391,7 +391,7 @@ Run all unit and system tests in parallel with `RAILS_ENV=test ./bin/rails paralIf you want to run specific tests (e.g., only those from the team planner module), you can use this command:-```bash+```shellRAILS_ENV=test bundle exec parallel_rspec -- modules/team_planner/spec```@@ -399,7 +399,7 @@ RAILS_ENV=test bundle exec parallel_rspec -- modules/team_planner/specTo run tests automatically when a file is modified, you can use [watchexec](https://github.com/watchexec/watchexec) like this:-```+```shellwatchexec --exts rb,erb -- bin/rspec spec/some/path/to/a_particular_spec.rb```@@ -408,7 +408,8 @@ This command instructs `watchexec` to watch `.rb` and `.erb` files for modificatStop `watchexec` by pressing `Ctrl+C`.Set an alias to make it easier to call:-```++```shellalias wrspec='watchexec --exts rb,erb -- bin/rspec'wrspec spec/some/path/to/a_particular_spec.rb@@ -432,8 +433,7 @@ If you want to access the development server of OpenProject from a VM, you needOne way is to disable the Angular CLI that serves some of the assets when developing. To do that, run-```bash-+```shell# Precompile the application./bin/rails assets:precompile@@ -449,7 +449,7 @@ Now assuming networking is set up in your VM, you can access your app server onAssuming your openproject is served at `<your local ip>:3000` and your ng serve middleware is running at `<your local ip>:4200`,you can access both from inside a VM with nat/bridged networking as follows:-```bash+```shell# Start ng serve middleware binding to all interfacesnpm run serve:publicdiff --git a/docs/development/saml/README.md b/docs/development/saml/README.mdindex 8d5c1c647aa..969f62fec08 100644--- a/docs/development/saml/README.md+++ b/docs/development/saml/README.md@@ -33,7 +33,7 @@ We need to run the SimpleSAMLphp idP contained in the docker container. We onlyCreate a new folder `saml-idp` and switch to it-```bash+```shellmkdir saml-idp && cd saml-idp```@@ -41,7 +41,7 @@ mkdir saml-idp && cd saml-idpCreate a file `users.php` with the following content-```bash+```shell<?php$config = array(@@ -74,7 +74,7 @@ $config = array(You can now run the docker container and the updated configuration with this command.-```bash+```shelldocker run \-p 8080:8080 \-p 8443:8443 \@@ -90,7 +90,7 @@ kristophjunge/test-saml-idpIf you're not using a development installation of OpenProject, you'll need to change the ENV variables slightly:-```bash+```shelldocker run \-p 8080:8080 \-p 8443:8443 \diff --git a/docs/development/style-guide/frontend/README.md b/docs/development/style-guide/frontend/README.mdindex 9bd8c870c8f..1d1c1a122af 100644--- a/docs/development/style-guide/frontend/README.md+++ b/docs/development/style-guide/frontend/README.md@@ -18,7 +18,7 @@ Encapsulate the implementation details in the subdomain service (e.g., login shoEncapsulate the implementation details in a component’s method or in a Presenter (service scoped/provided in the component).#### Example-```+```javascript// Imperative programmingconst bestProducts = [];@@ -59,7 +59,7 @@ Not capable of or susceptible to change. An immutable value can’t be changed,Do not mutate objects, spread the word.* Do not edit object’s, use the immutable alternatives:-```+```javascriptconst copy = {...originalObject};const add = {...originalObject, propertyToChange: 'new value'};const remove = {propertyToDelete, ...newObjectWithoutThePropertyToDelete};@@ -67,7 +67,7 @@ const remove = {propertyToDelete, ...newObjectWithoutThePropertyToDelete};* Avoid Array mutation methods (push, pop, shift, unshift, sort, reverse, splice, delete), use their immutable alternatives:-```+```javascriptclone = x => [...x];push = y => x => [...x, y];pop = x => x.slice(0, -1);@@ -256,4 +256,4 @@ Clean code is easily readable, understandable, changeable, extensible, scalable#### What* Do follow BEM directives:* [https://en.bem.info/methodology/css/](https://en.bem.info/methodology/css/)- * [https://en.bem.info/methodology/html/](https://en.bem.info/methodology/html/)\ No newline at end of file+ * [https://en.bem.info/methodology/html/](https://en.bem.info/methodology/html/)diff --git a/docs/enterprise-guide/enterprise-on-premises-guide/enterprise-on-premises-faq/README.md b/docs/enterprise-guide/enterprise-on-premises-guide/enterprise-on-premises-faq/README.mdindex cc166527fd2..07ee8417e18 100644--- a/docs/enterprise-guide/enterprise-on-premises-guide/enterprise-on-premises-faq/README.md+++ b/docs/enterprise-guide/enterprise-on-premises-guide/enterprise-on-premises-faq/README.md@@ -67,7 +67,7 @@ Yes. If you want to switch from a hosted version of OpenProject (Enterprise clouUntil this issue is fixed you can set the token manually via the console. Copy the new token and then do the following.-```+```shellsudo openproject run console# if user the docker all-in-one container: docker exec -it openproject bundle exec rails console# if using docker-compose: docker-compose run --rm web bundle exec rails consolediff --git a/docs/installation-and-operations/bim-edition/README.md b/docs/installation-and-operations/bim-edition/README.mdindex 07ae1a8f6fc..94f7b5cffc2 100644--- a/docs/installation-and-operations/bim-edition/README.md+++ b/docs/installation-and-operations/bim-edition/README.md@@ -87,13 +87,13 @@ Go to _-> Administration -> Design_ and from the _Themes_ drop down menu chooseIn order to use BIM edition inside a [docker-compose OpenProject installation](../installation/docker/), in the `docker-compose.override.yml` file in `x-op-app` > `environment` add one line-```yml+```yamlOPENPROJECT_EDITION: "bim"```This could look like this after editing file:-```yml+```yamlx-op-app: &app<<: *image<<: *restart_policydiff --git a/docs/installation-and-operations/configuration/README.md b/docs/installation-and-operations/configuration/README.mdindex 3488ed2a363..6a3ef4181b1 100644--- a/docs/installation-and-operations/configuration/README.md+++ b/docs/installation-and-operations/configuration/README.md@@ -26,7 +26,7 @@ After changing the file `/etc/openproject/conf.d/env` the command `sudo openproIf you would like to change only one variable you are able to configure the environment variable by using the following command:-```bash+```shellsudo openproject config:set VARIABLE=value```@@ -89,7 +89,7 @@ Alternatively, you can also use an env file for docker-compose like so:First, add a `.env` file with some variable:-```bash+```shellOPENPROJECT_HTTPS="true"```@@ -124,7 +124,7 @@ x-op-app: &appLet's say you have a `.env.prod` file with some production-specific configuration. Then, start the services with that special env file specified.-```bash+```shelldocker-compose --env-file .env.prod up```@@ -150,7 +150,7 @@ Configuring OpenProject through environment variables is described in detail [inEnvironment variables can be either passed directly on the command-line to theDocker Engine, or via an environment file:-```bash+```shelldocker run -d -e KEY1=VALUE1 -e KEY2=VALUE2 ...# ordocker run -d --env-file path/to/file ...@@ -181,7 +181,7 @@ In case of automated deployments, you might find it useful to seed an admin user-```bash+```shellOPENPROJECT_SEED_ADMIN_USER_PASSWORD="admin" # Password to set for the admin userOPENPROJECT_SEED_ADMIN_USER_PASSWORD_RESET="true" # Whether to force a password reset on first login (true/false)OPENPROJECT_SEED_ADMIN_USER_NAME="OpenProject Admin" # Name to assign to that user (First and lastnames will be split on the space character)@@ -202,7 +202,7 @@ The name of the LDAP connection is derived from the ENV key behind `SEED_LDAP_`,The following options are possible-```bash+```shell# Host name of the connectionOPENPROJECT_SEED_LDAP_EXAMPLE_HOST="localhost"# Port of the connection@@ -242,7 +242,7 @@ OPENPROJECT_SEED_LDAP_EXAMPLE_ADMIN__MAPPING=""To define a synchronized LDAP filter (for automatic group creation and synchronization), you can add these values:-```bash+```shell# Define a filter called "examplefilter" with the following options# LDAP base to search for groupsOPENPROJECT_SEED_LDAP_EXAMPLE_GROUPFILTER_EXAMPLEFILTER_BASE="ou=groups,dc=example,dc=com"@@ -423,13 +423,13 @@ OPENPROJECT_FOG_DIRECTORY="uploads"You can migrate attachments between the available backends. One example would be that you change the configuration from the file storage to the fog storage. If you want to put all the present file-based attachments into the cloud, you will have to use the following rake task:-```bash+```shellrake attachments:copy_to[fog]```It works the other way around too:-```bash+```shellrake attachments:copy_to[file]```@@ -667,7 +667,7 @@ If you would like to hide the homescreen links to the OpenProject community, you*default=true*-```+```yamlOPENPROJECT_SHOW__COMMUNITY__LINKS=false```diff --git a/docs/installation-and-operations/configuration/database/README.md b/docs/installation-and-operations/configuration/database/README.mdindex 1073ca27538..d07bb8cd5fb 100644--- a/docs/installation-and-operations/configuration/database/README.md+++ b/docs/installation-and-operations/configuration/database/README.md@@ -17,13 +17,13 @@ point to an external database.Example:-```bash+```shelldocker run -d ... -e DATABASE_URL=postgres://user:pass@host:port/dbname openproject/community:13```Best practice is using the file `docker-compose.override.yml`. If you run the Compose based docker stack, you can simply override the `DATABASE_URL` environment variable, and remove the `db` service from the `docker-compose.yml` file, but because by pulling a new version `docker-compose.yml` might get replaced. Then you can restart the stack with:-```bash+```shelldocker-compose downdocker-compose up -d```diff --git a/docs/installation-and-operations/configuration/environment/README.md b/docs/installation-and-operations/configuration/environment/README.mdindex 7633920a724..f2a3b5ab000 100644--- a/docs/installation-and-operations/configuration/environment/README.md+++ b/docs/installation-and-operations/configuration/environment/README.md@@ -12,7 +12,7 @@ sidebar_navigation:When using environment variables, you can set the options by setting environment variables with the name of the options below in uppercase. So for example, to configure email delivery via an SMTP server, you can set the following environment variables:-```bash+```shellEMAIL_DELIVERY_METHOD="smtp"SMTP_ADDRESS="smtp.example.net"SMTP_PORT="587"@@ -33,7 +33,7 @@ You can override nested configuration values as well by joining the respective hUnderscores within keys have to be escaped by doubling them.For example, given the following configuration:-```yml+```yamlstorage:tmp_path: tmp```@@ -99,19 +99,19 @@ A list of all configuration variables that can be overridden by defining them inFor packaged installations:-```bash+```shellsudo openproject run bundle exec rake setting:available_envs```For Docker installations:-```bash+```shelldocker exec -it $(docker ps | grep web | cut -d' ' -f 1) bash -c "RAILS_ENV=production bundle exec rake setting:available_envs"```The default value is also visible for each variable in parenthesis. The following are the correct values at the time of writing and that you should use the commands shown above to make sure to get the up-to-date list.-```bash+```shellOPENPROJECT_ACTIVITY__DAYS__DEFAULT (default=30) Days displayed on project activityOPENPROJECT_AFTER__FIRST__LOGIN__REDIRECT__URL (default=nil) URL users logging in for the first time will be redirected to (e.g., a help screen)OPENPROJECT_AFTER__LOGIN__DEFAULT__REDIRECT__URL (default=nil) Override URL to which logged in users are redirected instead of the My pagediff --git a/docs/installation-and-operations/configuration/incoming-emails/README.md b/docs/installation-and-operations/configuration/incoming-emails/README.mdindex fdffd224533..2940443c487 100644--- a/docs/installation-and-operations/configuration/incoming-emails/README.md+++ b/docs/installation-and-operations/configuration/incoming-emails/README.md@@ -21,13 +21,13 @@ The rake task `redmine:email:receive_imap` fetches emails via IMAP and parses thIMAP:-```bash+```shellopenproject run bundle exec rake redmine:email:receive_imap host='imap.gmail.com' username='test_user' password='password' port=993 ssl=true ssl_verification=true allow_override=type,project project=test_project```Gmail:-```bash+```shellopenproject run bundle exec rake redmine:email:receive_gmail credentials='/path/to/credentials.json' user_id='test_user' query='is:unread label:openproject' allow_override=type,project```diff --git a/docs/installation-and-operations/configuration/outbound-emails/README.md b/docs/installation-and-operations/configuration/outbound-emails/README.mdindex 3305ac70606..f2551dde25d 100644--- a/docs/installation-and-operations/configuration/outbound-emails/README.md+++ b/docs/installation-and-operations/configuration/outbound-emails/README.md@@ -56,7 +56,7 @@ These are the options that are available. Please see the [Configuration guide](.If you installed OpenProject with the package-based installation, you can configure the above settings using the config:set helper. Please note that this will disable the settings in the administration UI.-```bash+```shellopenproject config:set OPENPROJECT_EMAIL__DELIVERY__METHOD=smtpopenproject config:set OPENPROJECT_SMTP__ADDRESS=smtp.sendgrid.netopenproject config:set OPENPROJECT_SMTP__PORT=587@@ -74,7 +74,7 @@ openproject config:set OPENPROJECT_SMTP__PASSWORD="SG.pKvc3DQyQGyEjNh4RdOo_g.lVJIf you installed OpenProject with Docker, here is how you would enable outbound emails through the use of the SMTP environment variables (with SendGrid, the `SMTP_USER_NAME` is always `apikey`. Just replace `SMTP_PASSWORD` with the API key you've generated and you should be good togo). Please note that this will disable the settings in the administration UI.-```bash+```shelldocker run -d \-e OPENPROJECT_EMAIL__DELIVERY__METHOD=smtp \-e OPENPROJECT_SMTP__ADDRESS=smtp.sendgrid.net \diff --git a/docs/installation-and-operations/configuration/plugins/README.md b/docs/installation-and-operations/configuration/plugins/README.mdindex c357fd9dc90..99faac1d6a5 100644--- a/docs/installation-and-operations/configuration/plugins/README.md+++ b/docs/installation-and-operations/configuration/plugins/README.md@@ -18,7 +18,7 @@ Previously, using them in a packaged installation was not possible without losinIf you have a plugin you wish to add to your packaged OpenProject installation, create a separate Gemfile with the Gem dependencies, such as the following:-```+```rubygroup :opf_plugins dogem 'openproject-gitlab_integration', git: 'https://github.com/btey/openproject-gitlab-integration.git'end@@ -34,13 +34,13 @@ We suggest to store the Gemfile under `/etc/openproject/Gemfile.custom`, but theYou have to tell your installation to use the custom gemfile via a config setting:-```bash+```shellopenproject config:set CUSTOM_PLUGIN_GEMFILE="/etc/openproject/Gemfile.custom"```If your plugin links into the Angular frontend, you will need to set the following environment variable to ensure it gets recompiled. Please note that NPM dependencies will be installed during the installation, and the angular CLI compilation will take place which will delay the configuration process by a few minutes.-```bash+```shellopenproject config:set RECOMPILE_ANGULAR_ASSETS="true"```@@ -52,7 +52,7 @@ openproject config:set RECOMPILE_ANGULAR_ASSETS="true"To re-bundle the application including the new plugins, as well as running migrations and precompiling their assets, simply re-run the installer while using the same configuration as before.-```bash+```shellsudo openproject configure```diff --git a/docs/installation-and-operations/configuration/server/README.md b/docs/installation-and-operations/configuration/server/README.mdindex 563042bae43..c61a3674bba 100644--- a/docs/installation-and-operations/configuration/server/README.md+++ b/docs/installation-and-operations/configuration/server/README.md@@ -30,7 +30,7 @@ services:And the corresponding NginX configuration file would look like:-```+```nginx# default.confupstream web {server web:8080;diff --git a/docs/installation-and-operations/configuration/ssl/README.md b/docs/installation-and-operations/configuration/ssl/README.mdindex 5a05ed568a4..3ba1f7cac36 100644--- a/docs/installation-and-operations/configuration/ssl/README.md+++ b/docs/installation-and-operations/configuration/ssl/README.md@@ -10,7 +10,7 @@ sidebar_navigation:SSL configuration can be applied any time by reconfiguring the application with:-```bash+```shellsudo openproject reconfigure```@@ -33,7 +33,7 @@ This requires your OpenProject server to be reachable using a domain name (e.g.2. Follow the installation instructions to get the `certbot` CLI installed.3. Run the `certbot` CLI to generate the certificate (and only the certificate):- ```bash+ ```shellsudo certbot certonly --apache```@@ -51,7 +51,7 @@ This requires your OpenProject server to be reachable using a domain name (e.g.4. Let's Encrypt certificates are only valid for 90 days. An entry in your OS crontab should have automatically been added when `certbot` was installed. You can optionally confirm that the renewal will work by issuing the following command in dry-run mode:- ```bash+ ```shellsudo certbot renew --dry-run```diff --git a/docs/installation-and-operations/installation/docker/README.md b/docs/installation-and-operations/installation/docker/README.mdindex 5d9c408c34f..9e0eca78b9a 100644--- a/docs/installation-and-operations/installation/docker/README.md+++ b/docs/installation-and-operations/installation/docker/README.md@@ -22,25 +22,25 @@ OpenProject with Docker can be launched in two ways:First, you must clone the [openproject-deploy](https://github.com/opf/openproject-deploy/tree/stable/13/compose) repository:-```bash+```shellgit clone https://github.com/opf/openproject-deploy --depth=1 --branch=stable/13 openproject```Then, change into the compose folder, this folder will be the location where you enter all following commands:-```bash+```shellcd openproject/compose```Make sure you are using the latest version of the Docker images:-```bash+```shelldocker-compose pull```Launch the containers:-```bash+```shellOPENPROJECT_HTTPS=false docker-compose up -d```@@ -50,13 +50,13 @@ After a while, OpenProject should be up and running on `http://localhost:8080`.You can stop the Compose stack by running:-```+```shelldocker-compose stop```You can stop and remove all containers by running:-```+```shelldocker-compose down```@@ -80,7 +80,7 @@ In order to install or change to BIM inside a Docker environment, please navigatThe fastest way to get an OpenProject instance up and running is to run thefollowing command:-```bash+```shelldocker run -it -p 8080:80 \-e OPENPROJECT_SECRET_KEY_BASE=secret \-e OPENPROJECT_HOST__NAME=localhost:8080 \@@ -111,7 +111,7 @@ the logs to your terminal, which helps with debugging if anything goes wrong.For normal usage you probably want to start it in the background, which can beachieved with the `-d` flag:-```bash+```shelldocker run -d -p 8080:80 \-e OPENPROJECT_SECRET_KEY_BASE=secret \-e OPENPROJECT_HOST__NAME=localhost:8080 \@@ -140,7 +140,7 @@ You can use the following commands to create the local directories where thedata will be stored across container restarts, and start the container withthose directories mounted:-```bash+```shellsudo mkdir -p /var/lib/openproject/{pgdata,assets}docker run -d -p 8080:80 --name openproject \@@ -160,19 +160,19 @@ you will otherwise be vulnerable to [HOST header injections](https://portswiggerSince we named the container, you can now stop it by running:-```bash+```shelldocker stop openproject```And start it again:-```bash+```shelldocker start openproject```If you want to destroy the container, run the following commands-```bash+```shelldocker stop openprojectdocker rm openproject```@@ -247,7 +247,7 @@ Let's assume we want OpenProject to be accessed under https://openproject.examplThe **apache** configuration for this looks as follows.-```+```apache<VirtualHost *:80>ServerName openproject.example.com@@ -280,7 +280,7 @@ The **apache** configuration for this looks as follows.The **nginx** counterpart can be seen below.-```+```nginxserver {listen 80;@@ -317,13 +317,13 @@ under the *subdirectory* `/openproject`.If you want to run OpenProject in a subdirectory on your server, first you willneed to configure OpenProject accordingly by adding the following options to the `docker run` call:-```+```shell-e OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject```The **apache** configuration for this configuration then looks like this:-```+```apache<VirtualHost *:80>ServerName example.com@@ -356,7 +356,7 @@ The **apache** configuration for this configuration then looks like this:The equivalent **nginx** configuration looks as follows.-```+```nginxserver {listen 80;@@ -396,7 +396,7 @@ The docker image itself does not support plugins. But you can create your own do**2. Create the file `Gemfile.plugins`** in that folder. In the file you declare the plugins you want to install.For instance:-```+```rubygroup :opf_plugins dogem "openproject-slack", git: "https://github.com/opf/openproject-slack.git", branch: "release/12.0"end@@ -404,7 +404,7 @@ end**3. Create the `Dockerfile`** in the same folder. The contents have to look like this:-```+```dockerfileFROM openproject/community:13# If installing a local plugin (using `path:` in the `Gemfile.plugins` above),@@ -428,7 +428,7 @@ All the Dockerfile does is copy your custom plugins gemfile into the image, instTo actually build the docker image run:-```+```shelldocker build -t openproject-with-slack .```@@ -440,7 +440,7 @@ You can run the image just like the normal OpenProject image (as shown earlier).You just have to use your chosen tag instead of `openproject/community:13`.To just give it a quick try you can run this:-```+```shelldocker run -p 8080:80 --rm -it openproject-with-slack```@@ -455,7 +455,7 @@ The installation works the same as described above. The only difference is thatOn a system that has access to the internet run the following.-```+```shelldocker pull openproject/community:13 && docker save openproject/community:13 | gzip > openproject-12.tar.gz```@@ -471,7 +471,7 @@ This could be sftp, scp or even via a USB stick in case of a truly air-gapped syOnce the file is on the system you can load it like this:-```+```shellgunzip openproject-12.tar.gz && docker load -i openproject-12.tar```@@ -496,7 +496,7 @@ For more advanced setups and more information please consult the [docker swarm dFirst [initialize your swarm](https://docs.docker.com/get-started/swarm-deploy/) on the host you wish to be the swarm manager.-```bash+```shelldocker swarm init# You may need or want to specify the advertise address.# Say your node manager host's IP is 10.0.2.77:@@ -512,7 +512,7 @@ To add worker nodes run `docker swarm join-token worker`.This will print the necessary command (which includes the join token) which you need to runon the host you wish to add as a worker node. For instance:-```bash+```shelldocker swarm join --token SWMTKN-1-2wnvro17w7w2u7878yflajyjfa93e8b2x58g9c04lavcee93eb-abig91iqb6e5vmupfvq2f33ni 10.0.2.77:2377```@@ -560,7 +560,7 @@ x-op-app: &appAs you can see it already mounts a local directory by default.You can either change this to a path in your mounted NFS folder or just create a symlink:-```+```shellln -s /mnt/openproject/assets /var/openproject/assets```@@ -647,13 +647,13 @@ on what you can configure and how.Once you made any necessary adjustments to the `openproject-stack.yml` you are ready to launch the stack.-```bash+```shelldocker stack deploy -c openproject-stack.yml openproject```Once this has finished you should see something like this when running `docker service ls`:-```bash+```shelldocker service lsID NAME MODE REPLICAS IMAGE PORTSkpdoc86ggema openproject_cache replicated 1/1 memcached:latest@@ -690,13 +690,13 @@ Also at least 2 worker (`openproject_worker`) replicas make sense to handle theIf you find that it takes too long for those tasks (such as sending emails or work package exports) to completeyou may want to increase this number further.-```bash+```shelldocker service scale openproject_proxy=2 openproject_web=6 openproject_worker=2```This will take a moment to converge. Once done you should see something like the following when listing the services using `docker service ls`:-```bash+```shelldocker service lsID NAME MODE REPLICAS IMAGE PORTSkpdoc86ggema openproject_cache replicated 1/1 memcached:latestdiff --git a/docs/installation-and-operations/installation/helm-chart/README.md b/docs/installation-and-operations/installation/helm-chart/README.mdindex 7cf8d451a9a..acbf87b7015 100644--- a/docs/installation-and-operations/installation/helm-chart/README.md+++ b/docs/installation-and-operations/installation/helm-chart/README.md@@ -8,7 +8,7 @@ sidebar_navigation:## Basic commands-```bash+```shellhelm repo add openproject https://charts.openproject.orghelm upgrade --create-namespace --namespace openproject --install my-openproject openproject/openproject```@@ -26,7 +26,7 @@ This chart bootstraps an OpenProject instance, optionally with a PostgreSQL dataYou can install the chart with the release name `my-openproject` in its own namespace like this:-```bash+```shellhelm upgrade --create-namespace --namespace openproject --install my-openproject openproject/openproject```@@ -72,7 +72,7 @@ If you're operating an automated deployment with fresh databases for testing, thYou can customize the password as well as name, email, and whether a password change is enforced on first login with these variables:-```+```rubyopenproject.admin_user.password="my-secure-password"openproject.admin_user.password_reset="false"openproject.admin_user.name="Firstname Lastname"@@ -88,7 +88,7 @@ You can use `helm upgrade` to set individual values.For instance:-```+```shellhelm upgrade --reuse-values --namespace openproject my-openproject --set environment.OPENPROJECT_IMPRESSUM__LINK=https://www.openproject.org/legal/imprint/ --set environment.OPENPROJECT_APP__TITLE='My OpenProject'```@@ -98,7 +98,7 @@ Find out more about the [configuration](../../configuration/environment/) sectioTo uninstall the release with the name my-openproject do the following:-```bash+```shellhelm uninstall --namespace openproject my-openproject```@@ -121,7 +121,7 @@ This can happen when using **minikube**. By default, it initialises the clusterEither increase the cluster's resources to have at least 4 CPUs or install the OpenProject helm chart with a reduced CPU limit by adding the following option to the install command:-```+```shell--set resources.limits.cpu=2```diff --git a/docs/installation-and-operations/installation/manual/README.md b/docs/installation-and-operations/installation/manual/README.mdindex eb2e7b9f6fe..4d5ad03c8e8 100644--- a/docs/installation-and-operations/installation/manual/README.md+++ b/docs/installation-and-operations/installation/manual/README.md@@ -23,7 +23,7 @@ derivative.> **NOTE:** We have highlighted commands to execute like this-```bash+```shell[user@host] command to execute```@@ -35,7 +35,7 @@ tutorial, please, feel free to create a pull request against this guide.## Create a dedicated OpenProject user-```bash+```shellsudo groupadd openprojectsudo useradd --create-home --gid openproject openprojectsudo passwd openproject #(enter desired password)@@ -43,7 +43,7 @@ sudo passwd openproject #(enter desired password)## Install the required system dependencies-```bash+```shell[root@host] apt-get update -y[root@host] apt-get install -y zlib1g-dev build-essential \libssl-dev libreadline-dev \@@ -57,7 +57,7 @@ sudo passwd openproject #(enter desired password)## Install the caching server (memcached)-```bash+```shell[root@host] apt-get install -y memcached```@@ -65,31 +65,31 @@ sudo passwd openproject #(enter desired password)OpenProject requires PostgreSQL v9.5+. If you system package is too old, you can check [postgresql.org](https://www.postgresql.org/download/) to get a newer version installed. In our case, Ubuntu 18.04 comes with a recent-enough version so we can use the system packages:-```bash+```shell[root@host] apt-get install postgresql postgresql-contrib libpq-dev```Once installed, switch to the PostgreSQL system user.-```bash+```shell[root@host] su - postgres```Then, as the PostgreSQL user, create the database user for OpenProject. This will prompt you for a password. We are going to assume in the following guide that this password is 'openproject'. Of course, please choose a strong password and replace the values in the following guide with it!-```bash+```shell[postgres@host] createuser -W openproject```Next, create the database owned by the new user-```bash+```shell[postgres@host] createdb -O openproject openproject```Lastly, revert to the previous system user:-```bash+```shell[postgres@host] exit# You will be root again now.```@@ -100,7 +100,7 @@ The are several possibilities to install Ruby on your machine. We willuse [rbenv](https://github.com/rbenv/rbenv). Please be aware that the actual installation of a specific Ruby version takes sometime to finish.-```bash+```shell[root@host] su openproject --login[openproject@host] git clone https://github.com/sstephenson/rbenv.git ~/.rbenv[openproject@host] echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile@@ -129,7 +129,7 @@ already the `openproject` user you can skip this command. Please beaware that the actual installation of a specific node version takes sometime to finish.-```bash+```shell[openproject@host] git clone https://github.com/OiNutter/nodenv.git ~/.nodenv[openproject@host] echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.profile[openproject@host] echo 'eval "$(nodenv init -)"' >> ~/.profile@@ -153,7 +153,7 @@ We will install the OpenProject Community Edition. It contains the recommended swith OpenProject. For more information, see [github.com/opf/openproject](https://github.com/opf/openproject).-```bash+```shell[openproject@host] cd ~[openproject@host] git clone https://github.com/opf/openproject.git --branch stable/9 --depth 1[openproject@host] cd openproject@@ -170,7 +170,7 @@ with OpenProject. For more information, see [github.com/opf/openproject](https:/Create and configure the database configuration file in config/database.yml(relative to the openproject directory).-```bash+```shell[openproject@host] cp config/database.yml.example config/database.yml```@@ -190,7 +190,7 @@ production:Next we configure email notifications (this example uses a gmail account) by creating the `configuration.yml` in config directory.-```bash+```shell[openproject@host] cp config/configuration.yml.example config/configuration.yml```@@ -222,7 +222,7 @@ To configure the environment variables such as the number of web server threads## Finish the installation of OpenProject-```bash+```shell[openproject@host] cd ~/openproject[openproject@host] RAILS_ENV="production" ./bin/rake db:create[openproject@host] RAILS_ENV="production" ./bin/rake db:migrate@@ -232,7 +232,7 @@ To configure the environment variables such as the number of web server threads> **NOTE:** When not specified differently, the default data loaded via db:seed will have an English localization. You can choose to seed in a different language by specifying the language with `OPENPROJECT_DEFAULT_LANGUAGE` or `OPENPROJECT_SEED_LOCALE` environment variable on the initial call to `db:seed`. For instance:-```bash+```shell[openproject@all] RAILS_ENV="production" OPENPROJECT_DEFAULT_LANGUAGE=fr ./bin/rake db:seed```will seed the database in the French language.@@ -242,7 +242,7 @@ will seed the database in the French language.You need to generate a secret key base for the production environment with `./bin/rake secret` and make that available through the environment variable `SECRET_KEY_BASE`.In this installation guide, we will use the local `.profile` of the OpenProject user. You may alternatively set the environment variable in `/etc/environment` or pass it to the server upon start manually in `/etc/apache2/envvars`.-```bash+```shell[openproject@host] echo "export SECRET_KEY_BASE=$(./bin/rake secret)" >> ~/.profile[openproject@host] source ~/.profile```@@ -252,13 +252,13 @@ In this installation guide, we will use the local `.profile` of the OpenProjectFirst, we exit the current bash session with the openproject user,so that we are again in a root shell.-```bash+```shell[openproject@ubuntu] exit```Then, we prepare apache and passenger:-```bash+```shell[root@host] apt-get install -y apache2 libcurl4-gnutls-dev \apache2-dev libapr1-dev \libaprutil1-dev@@ -267,7 +267,7 @@ Then, we prepare apache and passenger:Now, the Passenger gem is installed and integrated into apache.-```bash+```shell[root@ubuntu] su openproject --login[openproject@ubuntu] cd ~/openproject[openproject@ubuntu] gem install passenger@@ -283,7 +283,7 @@ interested in?". We are interested only in ruby.The passenger installer tells us to edit the apache config files.To do this, continue as the root user:-```bash+```shell[openproject@host] exit```@@ -306,7 +306,7 @@ Then create the file /etc/apache2/mods-available/passenger.conf with the followiThen run:-```bash+```shell[root@openproject] a2enmod passenger```@@ -338,14 +338,14 @@ SetEnv EXECJS_RUNTIME DisabledLet's enable our new openproject site (and disable the default site, if necessary)-```bash+```shell[root@host] a2dissite 000-default[root@host] a2ensite openproject```Now, we (re-)start Apache:-```bash+```shell[root@host] service apache2 restart```@@ -360,7 +360,7 @@ Please, change the password on the first login. Also, we highly recommend to conOpenProject sends (some) mails asynchronously by using background jobs. All such jobs are collected in a queue, so that a separate process can work on them. This means that we have to start the background worker. To automate this, we put the background worker into a cronjob.-```bash+```shell[root@all] su - openproject -c "bash -l"[openproject@all] crontab -e```@@ -393,7 +393,7 @@ gem "openproject-meeting", git: "https://github.com/finnlabs/openproject-meetingIf you have modified the `Gemfile.plugin` file, always repeat the following steps of the OpenProject installation:-```bash+```shell[openproject@all] cd ~/openproject[openproject@all] bundle install[openproject@all] npm install@@ -404,7 +404,7 @@ If you have modified the `Gemfile.plugin` file, always repeat the following stepRestart the OpenProject server afterwards:-```bash+```shell[openproject@all] touch ~/openproject/tmp/restart.txt```@@ -424,7 +424,7 @@ If an error occurs, it should be logged there.If you need to restart the server (for example after a configuration change), do-```bash+```shell[openproject@all] touch ~/openproject/tmp/restart.txt```@@ -435,7 +435,7 @@ If you need to restart the server (for example after a configuration change), doThe `db:seed` command listed above creates a default admin-user. The username is `admin` and the default password is `admin`. You are forced to change the admin password on the first login.If you cannot login as the admin user, make sure that you have executed the `db:seed` command.- ```bash+ ```shell[openproject@all] RAILS_ENV="production" ./bin/rake db:seed```diff --git a/docs/installation-and-operations/installation/packaged/README.md b/docs/installation-and-operations/installation/packaged/README.mdindex eb64d2ebe86..1f556f9fff4 100644--- a/docs/installation-and-operations/installation/packaged/README.md+++ b/docs/installation-and-operations/installation/packaged/README.md@@ -41,7 +41,7 @@ The package is available for the following Linux distributions:Please ensure that you are running on a 64bit system before proceeding with the installation. You can check by running the `uname -i` command on the target server and verifying that it outputs `x86_64`:-```bash+```shell$ uname -mx86_64```@@ -54,27 +54,27 @@ x86_64Update the `apt` package index and install packages to allow `apt` to use a repository over HTTPS:-```bash+```shellsudo apt-get updatesudo apt-get install apt-transport-https ca-certificates wget```Import the PGP key used to sign our packages:-```bash+```shellsudo wget -O /etc/apt/trusted.gpg.d/openproject.asc https://dl.packager.io/srv/opf/openproject/key```Add the OpenProject package source:-```bash+```shellsudo wget -O /etc/apt/sources.list.d/openproject.list \https://dl.packager.io/srv/opf/openproject/stable/13/installer/ubuntu/22.04.repo```Download the OpenProject package:-```bash+```shellsudo apt-get updatesudo apt-get install openproject```@@ -87,27 +87,27 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cUpdate the `apt` package index and install packages to allow `apt` to use a repository over HTTPS:-```bash+```shellsudo apt-get updatesudo apt-get install apt-transport-https ca-certificates wget```Import the PGP key used to sign our packages:-```bash+```shellwget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -```Add the OpenProject package source:-```bash+```shellsudo wget -O /etc/apt/sources.list.d/openproject.list \https://dl.packager.io/srv/opf/openproject/stable/13/installer/ubuntu/20.04.repo```Download the OpenProject package:-```bash+```shellsudo apt-get updatesudo apt-get install openproject```@@ -120,7 +120,7 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cAs root update the `apt` package index and install packages to allow `apt` to use a repository over HTTPS:-```bash+```shellsu -apt updateapt install apt-transport-https ca-certificates wget@@ -128,20 +128,20 @@ apt install apt-transport-https ca-certificates wgetImport the PGP key used to sign our packages:-```bash+```shellwget -qO- https://dl.packager.io/srv/opf/openproject/key | gpg --dearmor > /etc/apt/trusted.gpg.d/packager-io.gpg```Add the OpenProject package source:-```bash+```shellwget -O /etc/apt/sources.list.d/openproject.list \https://dl.packager.io/srv/opf/openproject/stable/13/installer/debian/12.repo```Download the OpenProject package:-```bash+```shellapt updateapt install openproject```@@ -152,7 +152,7 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cAs root update the `apt` package index and install packages to allow `apt` to use a repository over HTTPS:-```bash+```shellsu -apt updateapt install apt-transport-https ca-certificates wget@@ -160,20 +160,20 @@ apt install apt-transport-https ca-certificates wgetImport the PGP key used to sign our packages:-```bash+```shellwget -qO- https://dl.packager.io/srv/opf/openproject/key | gpg --dearmor > /etc/apt/trusted.gpg.d/packager-io.gpg```Add the OpenProject package source:-```bash+```shellwget -O /etc/apt/sources.list.d/openproject.list \https://dl.packager.io/srv/opf/openproject/stable/13/installer/debian/11.repo```Download the OpenProject package:-```bash+```shellapt updateapt install openproject```@@ -184,27 +184,27 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cUpdate the `apt` package index and install packages to allow `apt` to use a repository over HTTPS:-```bash+```shellsudo apt-get updatesudo apt-get install apt-transport-https ca-certificates wget```Import the PGP key used to sign our packages:-```bash+```shellwget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -```Add the OpenProject package source:-```bash+```shellsudo wget -O /etc/apt/sources.list.d/openproject.list \https://dl.packager.io/srv/opf/openproject/stable/13/installer/debian/10.repo```Download the OpenProject package:-```bash+```shellsudo apt-get updatesudo apt-get install openproject```@@ -217,20 +217,20 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cAdd the OpenProject package source:-```bash+```shellsudo wget -O /etc/yum.repos.d/openproject.repo \https://dl.packager.io/srv/opf/openproject/stable/13/installer/el/9.repo```If it is not already enabled, make sure to enable [Extra Packages for Enterprise Linux](https://fedoraproject.org/wiki/EPEL) (EPEL).-```bash+```shellsudo dnf install -y epel-release```Download the OpenProject package:-```bash+```shellsudo yum install openproject```@@ -243,20 +243,20 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cAdd the OpenProject package source:-```bash+```shellsudo wget -O /etc/yum.repos.d/openproject.repo \https://dl.packager.io/srv/opf/openproject/stable/13/installer/el/8.repo```If it is not already enabled, make sure to enable [Extra Packages for Enterprise Linux](https://fedoraproject.org/wiki/EPEL) (EPEL).-```bash+```shellsudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y```Download the OpenProject package:-```bash+```shellsudo yum install openproject```@@ -269,14 +269,14 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cAdd the OpenProject package source:-```bash+```shellsudo wget -O /etc/yum.repos.d/openproject.repo \https://dl.packager.io/srv/opf/openproject/stable/13/installer/el/7.repo```Download the OpenProject package:-```bash+```shellsudo yum install openproject```@@ -306,7 +306,7 @@ This happens when your local postgresql-libs package is outdated. You'll have toAdd the OpenProject package source:-```bash+```shellwget -O /etc/zypp/repos.d/openproject.repo \https://dl.packager.io/srv/opf/openproject/stable/13/installer/sles/15.repo```@@ -314,13 +314,13 @@ wget -O /etc/zypp/repos.d/openproject.repo \If you already had an old package source that is being updated you must refreshyour source next. It can't hurt to do this in any case, though.-```bash+```shellsudo zypper refresh openproject```Next, download the OpenProject package:-```bash+```shellsudo zypper install openproject```@@ -330,7 +330,7 @@ Then finish the installation by reading the [*Initial configuration*](#initial-cAdd the OpenProject package source:-```bash+```shellwget -O /etc/zypp/repos.d/openproject.repo \https://dl.packager.io/srv/opf/openproject/stable/13/installer/sles/12.repo```@@ -338,13 +338,13 @@ wget -O /etc/zypp/repos.d/openproject.repo \If you already had an old package source that is being updated you must refreshyour source next. It can't hurt to do this in any case, though.-```bash+```shellsudo zypper refresh openproject```Next, download the OpenProject package:-```bash+```shellsudo zypper install openproject```@@ -368,7 +368,7 @@ After you have successfully installed the OpenProject package, you can now perfoTo start the configuration wizard, please run the following command with `sudo`, or as root:-```bash+```shellsudo openproject reconfigure #interactive - manual choices are stored in /etc/openproject/installer.datsudo openproject configure #non-interactive - using values stored in /etc/openproject/installer.dat```@@ -428,7 +428,7 @@ The wizard will not try to connect to any database. You will have to specify a dYou can set this `DATABASE_URL` parameter yourself to a PostgreSQL database URL.-```bash+```shellsudo openproject config:set DATABASE_URL="postgresql://[user[:password]@][host][:port][/dbname][?param1=value1&...]```@@ -499,7 +499,7 @@ Here an example for external SSL/TLS terminaltion with apache (httpd):> **Note:** There is [another example](../docker/#1-virtual-host-root) for external SSL/TLS termination for **docker-compose** installations-```bash+```shell<VirtualHost *:443>ServerName openproject.example.comdiff --git a/docs/installation-and-operations/misc/custom-openid-connect-providers/README.md b/docs/installation-and-operations/misc/custom-openid-connect-providers/README.mdindex 0b494922ca9..0527e053cc3 100644--- a/docs/installation-and-operations/misc/custom-openid-connect-providers/README.md+++ b/docs/installation-and-operations/misc/custom-openid-connect-providers/README.md@@ -10,7 +10,7 @@ That means you will have to do it directly using the console on the server or viFirst start the console.-```+```shellsudo openproject run console# if user the docker all-in-one container: docker exec -it openproject bundle exec rails console# if using docker-compose: docker-compose run --rm web bundle exec rails console@@ -91,7 +91,7 @@ The variable names can be derived from the options seen above. All variables wil`OPENPROJECT_OPENID__CONNECT_` followed by the provider name. For instance the okta example from above wouldbe defined via environment variables like this:-```+```shellOPENPROJECT_OPENID__CONNECT_OKTA_DISPLAY__NAME="Okta"OPENPROJECT_OPENID__CONNECT_OKTA_HOST="mypersonal.okta.com"OPENPROJECT_OPENID__CONNECT_OKTA_IDENTIFIER="<identifier or client id>"@@ -112,7 +112,7 @@ There are a number of known providers where the endpoints are configured automatIf you want to configure multiple connections using the same provider you can prefix an arbitrary name with theprovider name followed by a period. For instance, if you want to configure 2 AzureAD connections and 1 Google connection it would look like this:-```+```rubySetting.plugin_openproject_openid_connect = Hash(Setting.plugin_openproject_openid_connect || {}).deep_merge({"providers" => {"azure.dept1" => { "display_name"=>"Department 1","identifier"=>"...","secret"=>"..." },@@ -128,7 +128,7 @@ At the time of writing the known providers are: `azure`, `google`, `okta`You can override the default attribute mapping for values derived from the userinfo endpoint. For example, let's map the OpenProject login to the claim `preferred_username` that is sent by many OIDC providers.-```+```rubyoptions = {# ... other optionsattribute_map: {@@ -270,7 +270,7 @@ Next, you will need to create or note down the client secret for that client.In OpenProject, these are the variables you will need to set. Please refer to the above documentation for the different ways you can configure these variables:-```bash+```shell# The name of the login button in OpenProject, you can freely set this to anything you likeOPENPROJECT_OPENID__CONNECT_KEYCLOAK_DISPLAY__NAME="Keycloak"OPENPROJECT_OPENID__CONNECT_KEYCLOAK_HOST="<Hostname of the keycloak server>"@@ -307,7 +307,7 @@ Use our [Azure Active Directory guide](../../../system-admin-guide/authenticatioIn OpenProject, these are the variables you will need to set. Please refer to the above documentation for the different ways you can configure these variables:-```+```shellopenproject config:set OPENPROJECT_OPENID__CONNECT_AZURE_DISPLAY__NAME="Azure"openproject config:set OPENPROJECT_OPENID__CONNECT_AZURE_HOST="login.microsoftonline.com"openproject config:set OPENPROJECT_OPENID__CONNECT_AZURE_IDENTIFIER="https://<Your OpenProject hostname>"@@ -332,7 +332,7 @@ A: This can happen if you previously created user accounts in OpenProject with tSpawn an interactive console in OpenProject. The following example shows the command for the packaged installation.See [our process control guide](../../../installation-and-operations/operation/control/) for information on other installation types.-```bash+```shellsudo openproject run console> Setting.oauth_allow_remapping_of_existing_users = true> exitdiff --git a/docs/installation-and-operations/misc/docker-postgresql-migration/README.md b/docs/installation-and-operations/misc/docker-postgresql-migration/README.mdindex 61928fcbe7e..2b273afafe1 100644--- a/docs/installation-and-operations/misc/docker-postgresql-migration/README.md+++ b/docs/installation-and-operations/misc/docker-postgresql-migration/README.md@@ -22,31 +22,31 @@ If you want to set up a PostgreSQL installation database outside the container aOpenProject requires at least PostgreSQL 9.5 installed. Please check [www.postgresql.org/download](https://www.postgresql.org/download/) if your distributed package is too old.-```bash+```shell[root@host] apt-get install postgresql postgresql-contrib libpq-dev```Once installed, switch to the PostgreSQL system user.-```bash+```shell[root@host] su - postgres```Then, as the PostgreSQL user, create the system user for OpenProject. This will prompt you for a password. We are going to assume in the following guide that password were 'openproject'. Of course, please choose a strong password and replace the values in the following guide with it!-```bash+```shell[postgres@host] createuser -W openproject```Next, create the database owned by the new user-```bash+```shell[postgres@host] createdb -O openproject openproject```Lastly, exit the system user-```bash+```shell[postgres@host] exit# You will be root again now.```@@ -63,7 +63,7 @@ To run the migration part of the image, you will have to provide two environmentNote down or copy the current MySQL `DATABASE_URL`-```bash+```shell# Will look something of the kind# mysql2://user:password@localhost:3306/dbname@@ -80,7 +80,7 @@ MYSQL_DATABASE_URL="mysql://user:password@localhost:3306/dbname"Pass in `DATABASE_URL` pointing to your new PostgreSQL database. This is either the default `postgres://openproject:[email protected]/openproject` or if you set up a PostgreSQL installation above, use credentials for your installation you set up above.-```bash+```shellPOSTGRES_DATABASE_URL="postgresql://<USER>:<PASSWORD>@<HOST>/<Database name>"```@@ -96,7 +96,7 @@ with `host.docker.internal` to access the docker host. On Mac for example, localTo run the migration script within the container, now simply run the following command, replacing the content of the environment variables with your actual values.-```bash+```shelldocker run -it \-e MYSQL_DATABASE_URL="mysql://user:password@localhost:3306/dbname" \-e DATABASE_URL="postgresql://openproject:<PASSWORD>@localhost:5432/openproject" \diff --git a/docs/installation-and-operations/misc/migration-to-postgresql13/README.md b/docs/installation-and-operations/misc/migration-to-postgresql13/README.mdindex 70d868b458a..1400774eb0f 100644--- a/docs/installation-and-operations/misc/migration-to-postgresql13/README.md+++ b/docs/installation-and-operations/misc/migration-to-postgresql13/README.md@@ -11,7 +11,7 @@ Please first check whether this guide applies to you at all. Only PostgreSQL insTo do that, please run the following command:-```bash+```shellsudo cat /etc/openproject/installer.dat | grep postgres/autoinstall```@@ -30,14 +30,14 @@ For the documentation parts titled RedHat/CentOS RedHat Enterprise Linux 8 was uFor Debian/Ubuntu:-```bash+```shellsudo cat /var/lib/postgresql/10/main/PG_VERSION10```For RedHat/CentOS:-```bash+```shellsudo cat /var/lib/pgsql/10/data/PG_VERSION10```@@ -48,14 +48,14 @@ sudo cat /var/lib/pgsql/10/data/PG_VERSIONFor Debian/Ubuntu:-```bash+```shellsudo apt-get updatesudo apt-get install postgresql-13```For RedHat/CentOS:-```bash+```shellsudo yum install pgsql13sudo /usr/bin/postgresql-13-setup initdb```@@ -66,14 +66,14 @@ sudo /usr/bin/postgresql-13-setup initdbFor Debian/Ubuntu:-```bash+```shellsudo su - postgres -c "/usr/lib/postgresql/10/bin/pg_ctl stop --wait --pgdata=/var/lib/postgresql/10/main"sudo su - postgres -c "/usr/lib/postgresql/13/bin/pg_ctl stop --wait --pgdata=/var/lib/postgresql/13/main"```For RedHat/CentOS:-```bash+```shellsudo su - postgres -c "/usr/pgsql-10/bin/pg_ctl stop --wait --pgdata=/var/lib/pgsql/10/data"sudo su - postgres -c "/usr/pgsql-13/bin/pg_ctl stop --wait --pgdata=/var/lib/pgsql/13/data"```@@ -84,7 +84,7 @@ sudo su - postgres -c "/usr/pgsql-13/bin/pg_ctl stop --wait --pgdata=/var/lib/pgFor Debian/Ubuntu:-```bash+```shellsudo su - postgres <<CMD/usr/lib/postgresql/13/bin/pg_upgrade \--old-bindir=/usr/lib/postgresql/10/bin \@@ -98,7 +98,7 @@ CMDFor RedHat/CentOS:-```bash+```shellsudo su - postgres <<CMD/usr/pgsql-13/bin/pg_upgrade \--old-bindir=/usr/pgsql-10/bin \@@ -116,7 +116,7 @@ CMDFor Debian/Ubuntu:-```bash+```shellsudo su - postgres -c "cp /etc/postgresql/{10,13}/main/conf.d/custom.conf"sudo su - postgres -c "sed -i 's|45432|45433|' /etc/postgresql/10/main/conf.d/custom.conf"sudo su - postgres -c "/usr/lib/postgresql/13/bin/pg_ctl start --wait --pgdata=/var/lib/postgresql/13/main -o '-c config_file=/etc/postgresql/13/main/postgresql.conf'"@@ -124,7 +124,7 @@ sudo su - postgres -c "/usr/lib/postgresql/13/bin/pg_ctl start --wait --pgdata=/For RedHat/CentOS:-```bash+```shellsudo su - postgres -c "mkdir -p /var/lib/pgsql/13/data/conf.d"sudo su - postgres -c "vi /var/lib/pgsql/13/data/postgresql.conf"@@ -160,14 +160,14 @@ postgres=# \qFor Debian/Ubuntu:-```bash+```shellsudo rm -rf /var/lib/postgresql/10/mainsudo apt-get purge postgresql-10```For RedHat/CentOS:-```bash+```shellsudo rm -rf /var/lib/pgsql/10/datasudo yum remove pgsql10```@@ -192,13 +192,13 @@ Then the goal is to take this folder, and apply `pg_upgrade` on it. This will geFirst, ensure that you have stopped your container:-```bash+```shelldocker stop openproject```Once the docker has stopped, you are ready to run the upgrade command. In this case, we assume that your existing PostgreSQL data is stored on the host at `/var/lib/openproject/pgdata`. We will also map a local folder named `/var/lib/openproject/pgdata-next` to a special volume in the container, named `/var/openproject/pgdata-next`. This volume will contain the upgraded cluster:-```bash+```shelldocker run --rm -it \-v /var/lib/openproject/pgdata:/var/openproject/pgdata \-v /var/lib/openproject/pgdata-next:/var/openproject/pgdata-next \@@ -220,7 +220,7 @@ Running this script will delete the old cluster's data files:You can then perform the following operation to switch the upgraded PostgreSQL with the older version:-```bash+```shellsudo mv /var/lib/openproject/pgdata /var/lib/openproject/pgdata-prevsudo mv /var/lib/openproject/pgdata-next /var/lib/openproject/pgdata```@@ -235,13 +235,13 @@ docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \If your new installation looks fine, you can then choose to remove `/var/lib/openproject/pgdata-prev`:-```bash+```shellsudo rm -rf /var/lib/openproject/pgdata-prev```If you encounter an issue, you can switch back to the previous PostgreSQL folder by reverting the folder switch:-```bash+```shellsudo mv /var/lib/openproject/pgdata /var/lib/openproject/pgdata-nextsudo mv /var/lib/openproject/pgdata-prev /var/lib/openproject/pgdata```@@ -254,7 +254,7 @@ After an upgrade of PostgreSQL, we strongly recommend running the following SQLFor that, open a database console. On a packaged installation, this is the way to do it:-```+```shellpsql $(openproject config:get DATABASE_URL)```diff --git a/docs/installation-and-operations/misc/migration/README.md b/docs/installation-and-operations/misc/migration/README.mdindex f06f5bf2341..f13bb010dde 100644--- a/docs/installation-and-operations/misc/migration/README.md+++ b/docs/installation-and-operations/misc/migration/README.md@@ -53,14 +53,14 @@ On your new host or cluster, ensure you have created a database user and databasIn the following, the values `<dbuser>`, `<dbhost>` and `<dbname>` variables have to be replaced with your database user and database above.To read the values from the old installation, you can execute the following command:-```bash+```shellopenproject config:get DATABASE_URL#=> e.g.: postgres://dbusername:dbpassword@dbhost:dbport/dbname```First the dump has to be extracted (unzipped) and then restored. The command used should look very similar to the following. The `--clean` option is used to drop any database object within `<dbname>` so ensure this is the correct database you want to restore, as you will lose all data within it!-```+```shell# Restore the PostgreSQL dumppg_restore -h <dbhost> -u <dbuser> -W --dbname <dbname> --clean postgresql-dump-20180408095521.pgdump```@@ -70,7 +70,7 @@ pg_restore -h <dbhost> -u <dbuser> -W --dbname <dbname> --clean postgresql-dump-Your storage path on the old installation can be shown using the following command:-```+```shellopenproject config:get OPENPROJECT_ATTACHMENTS__STORAGE__PATH#=> e.g., /var/db/openproject/files```@@ -78,7 +78,7 @@ openproject config:get OPENPROJECT_ATTACHMENTS__STORAGE__PATHOn versions prior to 12.5, the environment variable was named differently. Usethe following command to show the storage path:-```+```shellopenproject config:get ATTACHMENTS_STORAGE_PATH#=> e.g., /var/db/openproject/files```@@ -94,7 +94,7 @@ For repositories, the same approach applies as for the attachments:Your SVN and Git storage paths on the old installation can be shown using the following command:-```+```shell# Subversionopenproject config:get SVN_REPOSITORIES#=> e.g., /var/db/openproject/svn@@ -112,7 +112,7 @@ Simply extract your respective repository dumps into ech folder, creating it befAfter you restored all data and updated your installer.dat, all you need to do is run through the configuration process of the packaged installation:-```bash+```shellopenproject configure```diff --git a/docs/installation-and-operations/misc/packaged-postgresql-migration/README.md b/docs/installation-and-operations/misc/packaged-postgresql-migration/README.mdindex 4d86c3a4297..bc45d7ff666 100644--- a/docs/installation-and-operations/misc/packaged-postgresql-migration/README.md+++ b/docs/installation-and-operations/misc/packaged-postgresql-migration/README.md@@ -22,7 +22,7 @@ We ship a custom version of pgloader (named `pgloader-ccl`), which embeds some m### Ubuntu 18.04-```+```shellwget -qO- https://dl.packager.io/srv/opf/pgloader-ccl/key | sudo apt-key add -sudo wget -O /etc/apt/sources.list.d/pgloader-ccl.list \https://dl.packager.io/srv/opf/pgloader-ccl/master/installer/ubuntu/18.04.repo@@ -32,7 +32,7 @@ sudo apt-get install pgloader-ccl### Ubuntu 16.04-```+```shellwget -qO- https://dl.packager.io/srv/opf/pgloader-ccl/key | sudo apt-key add -sudo wget -O /etc/apt/sources.list.d/pgloader-ccl.list \https://dl.packager.io/srv/opf/pgloader-ccl/master/installer/ubuntu/16.04.repo@@ -42,7 +42,7 @@ sudo apt-get install pgloader-ccl### Debian 9-```+```shellwget -qO- https://dl.packager.io/srv/opf/pgloader-ccl/key | sudo apt-key add -sudo wget -O /etc/apt/sources.list.d/pgloader-ccl.list \https://dl.packager.io/srv/opf/pgloader-ccl/master/installer/debian/9.repo@@ -52,7 +52,7 @@ sudo apt-get install pgloader-ccl### CentOS / RHEL 7-```+```shellsudo wget -O /etc/yum.repos.d/pgloader-ccl.repo \https://dl.packager.io/srv/opf/pgloader-ccl/master/installer/el/7.reposudo yum install pgloader-ccl@@ -60,7 +60,7 @@ sudo yum install pgloader-ccl### SuSE Enterprise Linux 12-```+```shellsudo wget -O /etc/zypp/repos.d/pgloader-ccl.repo \https://dl.packager.io/srv/opf/pgloader-ccl/master/installer/sles/12.reposudo zypper install pgloader-ccl@@ -72,31 +72,31 @@ If you have not yet installed and set up a PostgreSQL installation database, pleOpenProject requires at least PostgreSQL 9.5 installed. Please check [www.postgresql.org/download](https://www.postgresql.org/download/) if your distributed package is too old.-```bash+```shell[root@host] apt-get install postgresql postgresql-contrib libpq-dev```Once installed, switch to the PostgreSQL system user.-```bash+```shell[root@host] su - postgres```Then, as the PostgreSQL user, create the system user for OpenProject. This will prompt you for a password. We are going to assume in the following guide that password were 'openproject'. Of course, please choose a strong password and replace the values in the following guide with it!-```bash+```shell[postgres@host] createuser -P -d openproject```Next, create the database owned by the new user-```bash+```shell[postgres@host] createdb -O openproject openproject```Lastly, exit the system user-```bash+```shell[postgres@host] exit# You will be root again now.```@@ -105,7 +105,7 @@ Lastly, exit the system userThe following command saves the current MySQL `DATABASE_URL` as `MYSQL_DATABASE_URL` in the OpenProject configuration:-```bash+```shellopenproject config:set MYSQL_DATABASE_URL="$(openproject config:get DATABASE_URL)"openproject config:get MYSQL_DATABASE_URL@@ -119,7 +119,7 @@ This will be used later by the migration script.Form the `DATABASE_URL` string to match your selected password and add it to the openproject configuration:-```bash+```shellopenproject config:set DATABASE_URL="postgresql://openproject:<PASSWORD>@localhost/openproject"```@@ -128,7 +128,7 @@ openproject config:set DATABASE_URL="postgresql://openproject:<PASSWORD>@localhoYou can use this command to escape any characters in the password:-```bash+```shellopenproject run ruby -r cgi -e "puts CGI.escape('your-password-here');"```@@ -137,7 +137,7 @@ openproject run ruby -r cgi -e "puts CGI.escape('your-password-here');"You are now ready to migrate from MySQL to PostgreSQL. The OpenProject packages embed a migration script that can be launched as follows:-```+```shellsudo openproject run ./docker/mysql-to-postgres/bin/migrate-mysql-to-postgres```@@ -163,7 +163,7 @@ The following is an exemplary removal of an installed version MySQL 5.7.After you migrated your data, all you need to do is run through the configuration process of the packaged installation to remove the MySQL configuration-```bash+```shellopenproject reconfigure```diff --git a/docs/installation-and-operations/misc/textile-migration/README.md b/docs/installation-and-operations/misc/textile-migration/README.mdindex 695f443d88c..d4b034999b5 100644--- a/docs/installation-and-operations/misc/textile-migration/README.md+++ b/docs/installation-and-operations/misc/textile-migration/README.md@@ -37,12 +37,14 @@ This will print a warning and then continue with the migration. You can manually- $> bundle exec rails runner "OpenProject::TextFormatting::Formats::Markdown::TextileConverter.new.run!"+```shell+$> bundle exec rails runner "OpenProject::TextFormatting::Formats::Markdown::TextileConverter.new.run!"+```or in a packaged installation:-```- $> openproject run bundle exec rails runner "OpenProject::TextFormatting::Formats::Markdown::TextileConverter.new.run!"+```shell+$> openproject run bundle exec rails runner "OpenProject::TextFormatting::Formats::Markdown::TextileConverter.new.run!"```diff --git a/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.md b/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.mdindex 47602786c42..7821acbb08c 100644--- a/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.md+++ b/docs/installation-and-operations/misc/time-entries-corrupted-by-10-4/README.md@@ -26,14 +26,14 @@ As a result of this step, a second database, not the database OpenProject is curFirst, connect to the OpenProject server and get the necessary details about your current database:-```bash+```shell$ openproject config:get DATABASE_URL#=> e.g.: postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<dbname>```Example:-```bash+```shell$ openproject config:get DATABASE_URLpostgres://openproject:[email protected]:45432/openproject```@@ -42,27 +42,27 @@ postgres://openproject:[email protected]:45432/openprojUsing this connection string, the following command will create the database the backup will be restored to (named `openproject_backup` in this example):-```bash+```shell$ psql "postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<dbname>" -c 'CREATE DATABASE <new_dbname>'CREATE DATABASE```Example:-```bash+```shell$ psql "postgres://openproject:[email protected]:45432/openproject" -c 'CREATE DATABASE openproject_backup'CREATE DATABASE```The command above might not work for some installations. In that case the following is a viable alternative:-```bash+```shell$ su postgres -c createdb -O <dbusernamer> openproject_backup```Example:-```bash+```shell$ su postgres -c createdb -O openproject openproject_backup```@@ -70,7 +70,7 @@ $ su postgres -c createdb -O openproject openproject_backupNext, that newly created database will receive the data from a backup file which typically can be found in `/var/db/openproject/backup`-```bash+```shell$ ls -al /var/db/openproject/backup/total 1680drwxr-xr-x 2 openproject openproject 4096 Nov 19 21:00 .@@ -86,13 +86,13 @@ We will need the most recently created (but created before the migration to 10.4Using that file we can then restore the database to the newly created database (called `openproject_backup` in our example). **In the following steps, ensure that you do not restore to the currently running database**.-```bash+```shell$ pg_restore -d "postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<new_dbname>" /var/db/openproject/backup/postgresql-dump-<TIMESTAMP>.pgdump````Example:-```bash+```shell$ pg_restore -d "postgres://openproject:[email protected]:45432/openproject_backup" /var/db/openproject/backup/postgresql-dump-20191119210038.pgdump````@@ -102,19 +102,19 @@ That command will restore the contents of the backup file into the auxiliary datThe script that fixes the time entries can then be called:-```bash+```shell$ BACKUP_DATABASE_URL="postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<new_dbname>" sudo openproject run bundle exec rails openproject:reassign_time_entry_activities```Example-```bash+```shell$ BACKUP_DATABASE_URL="postgres://openproject:[email protected]:45432/openproject_backup" sudo openproject run bundle exec rails openproject:reassign_time_entry_activities```The script will then print out the number of time entries it has fixed.-```bash+```shellFixing 341 time entries.Done.@@ -125,14 +125,14 @@ Done.The database containing the backup data can be removed once the script has finished (again, **ensure to reference the auxiliary database for the drop command**):-```bash+```shell$ psql "postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<dbname>" -c 'DROP DATABASE <new_dbname>'DROP DATABASE```Example:-```bash+```shell$ psql "postgres://openproject:[email protected]:45432/openproject" -c 'DROP DATABASE openproject_backup'DROP DATABASE```diff --git a/docs/installation-and-operations/misc/upgrading-older-openproject-versions/README.md b/docs/installation-and-operations/misc/upgrading-older-openproject-versions/README.mdindex 73336d84797..de1aa7ce738 100644--- a/docs/installation-and-operations/misc/upgrading-older-openproject-versions/README.md+++ b/docs/installation-and-operations/misc/upgrading-older-openproject-versions/README.md@@ -16,7 +16,7 @@ All the script needs is docker to be installed. It will start containers as requFirst, you will need to create a backup to get the MySQL database dump. Please see our separate guide on [Backing up](../../operation/backing-up/). In a packaged installation, the following command will output a full backup to `/var/db/openproject/backup`:-```bash+```shellopenproject run backup```@@ -25,7 +25,7 @@ openproject run backupThis will output a MySQL dump at `/var/db/openproject/backup/mysql-dump-<timestamp>.sql.gz`. You will need to gunzip this:-```+```shellcp /var/db/openproject/backup/mysql-dump-<timestamp>.sql.gz /tmp/openproject-mysql.dump.gzgunzip /tmp/openproject/openproject-mysql.dump.gz```@@ -36,7 +36,7 @@ gunzip /tmp/openproject/openproject-mysql.dump.gzWith docker installed, use the following command to start the upgrade process on your MySQL dump.-```bash+```shellbash migrate-from-pre-8.sh <docker host IP> <Path to MySQL dump file> [sql|custom]```diff --git a/docs/installation-and-operations/operation/backing-up/README.md b/docs/installation-and-operations/operation/backing-up/README.mdindex 50abe499964..4cffa894c45 100644--- a/docs/installation-and-operations/operation/backing-up/README.md+++ b/docs/installation-and-operations/operation/backing-up/README.md@@ -24,19 +24,19 @@ of the current OpenProject installation. This tool will create a backup ofall parts mentioned above. The backup tool is invoked by executing the followingcommand:-```bash+```shellsudo openproject run backup```The command will create backup files in the following location on your system:-```bash+```shell/var/db/openproject/backup```The content of that directory should look very similar to the following.-```bash+```shellroot@ip-10-0-0-228:/home/admin# ls -al /var/db/openproject/backup/total 1680drwxr-xr-x 2 openproject openproject 4096 Nov 19 21:00 .@@ -56,7 +56,7 @@ If you are using docker-compose, then the data volumes are managed by Docker andIf you are using the all-in-one container, then you can simply backup any local volumes that you chose to bind-mount with the `-v` option when launching the container. For instance if you launched the container with:-```bash+```shellsudo mkdir -p /var/lib/openproject/{pgdata,assets}docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \@@ -71,7 +71,7 @@ Then you would need to backup the `/var/lib/openproject` folder (for instance toWhen using docker-compose you can simply dump the database from the database container.-```+```shelldocker exec -it db_1 pg_dump -U postgres -d openproject -x -O > openproject.sql```@@ -81,7 +81,7 @@ This assumes that the database container is called `db_1`. Find out the actual nIf you need a regular dump of the database you can get one using `pg_dump` like this:-```+```shelldocker exec -it $OP_CONTAINER_NAME su - postgres -c 'pg_dump -d openproject -x -O' > openproject.sql```diff --git a/docs/installation-and-operations/operation/control/README.md b/docs/installation-and-operations/operation/control/README.mdindex 950fa2c863f..4297183b5e2 100644--- a/docs/installation-and-operations/operation/control/README.md+++ b/docs/installation-and-operations/operation/control/README.md@@ -14,7 +14,7 @@ sidebar_navigation:#### Restart all the OpenProject processes-```bash+```shellsudo openproject restart```@@ -26,13 +26,13 @@ The OpenProject command line tool supports running rake tasks and known scripts.Get the current version of OpenProject-```bash+```shellsudo openproject run bundle exec rake version```Launch an interactive console to directly interact with the underlying Ruby on Rails application:-```bash+```shellsudo openproject run console# if user the docker all-in-one container: docker exec -it openproject bundle exec rails console# if using docker-compose: docker-compose run --rm web bundle exec rails console@@ -40,7 +40,7 @@ sudo openproject run consoleManually launch the database migrations:-```bash+```shellsudo openproject run rake db:migrate# if user the docker all-in-one container: docker exec -it openproject bundle exec rake db:migrate# if using docker-compose: docker-compose run --rm web bundle exec rake db:migrate@@ -48,7 +48,7 @@ sudo openproject run rake db:migrateCheck the version of Ruby used by OpenProject:-```bash+```shellsudo openproject run ruby -v# if user the docker all-in-one container: docker exec -it openproject ruby -v# if using docker-compose: docker-compose run --rm web ruby -v@@ -62,13 +62,13 @@ Note: Depending on your free RAM on your system, we recommend you raise the defaWe recommend at least 4 web processes. Please check your current web processes count with:-```bash+```shellsudo openproject config:get OPENPROJECT_WEB_WORKERS```If it returns nothing, the default process count of `4` applies. To increase or decrease the process count, call-```bash+```shellsudo openproject config:set OPENPROJECT_WEB_WORKERS=number```@@ -76,7 +76,7 @@ Where `number` is a positive number between 1 and `round(AVAILABLE_RAM * 1.5)`.After changing these values, simply restart the web process:-```bash+```shellsudo openproject restart web```@@ -89,7 +89,7 @@ We recommend to have two background worker processes. Please check your currentTo set the desired process count, call-```bash+```shellsudo openproject scale worker=number```@@ -107,7 +107,7 @@ You can spawn an interactive shell in your docker container to run commands in tFirst, find out the container ID of your web process with:-```bash+```shell# Ensure the containers are running with the following outputdocker ps | grep web_1@@ -121,19 +121,19 @@ We can now run commands against that containerRun a bash shell in the container-```bash+```shelldocker exec -it $CID bash```Get the current version of OpenProject-```bash+```shelldocker exec -it $CID bash -c "RAILS_ENV=production bundle exec rails version"```In case of using kubernetes, the command is a bit different-```bash+```shellkubectl exec -it {POD_ID} -- bash -c "RAILS_ENV=production bundle exec rails console"```@@ -141,7 +141,7 @@ kubectl exec -it {POD_ID} -- bash -c "RAILS_ENV=production bundle exec rails conLaunch an interactive console to directly interact with the underlying Ruby on Rails application:-```bash+```shelldocker exec -it $CID bash -c "RAILS_ENV=production bundle exec rails console"```@@ -154,6 +154,6 @@ You can spawn an interactive shell in your docker-compose setup container to runThe following command will spawn a Rails console in the container:-```bash+```shelldocker-compose run web bash -c "RAILS_ENV=production bundle exec rails console"```diff --git a/docs/installation-and-operations/operation/monitoring/README.md b/docs/installation-and-operations/operation/monitoring/README.mdindex a276e85cb81..fe32b945260 100644--- a/docs/installation-and-operations/operation/monitoring/README.md+++ b/docs/installation-and-operations/operation/monitoring/README.md@@ -13,7 +13,7 @@ used to see the log information. The most typically use case is to show/followall current log entries. This can be accomplished using the the `–tail` flag.See example below:-```bash+```shellsudo openproject logs --tail```@@ -29,13 +29,13 @@ In a docker-based installation, all logs are redirected to STDOUT so you can useFor instance for the Compose-based installation:-```bash+```shelldocker-compose logs -f --tail 1000```Or the all-in-one docker installation:-```bash+```shelldocker logs -f --tail 1000 openproject```@@ -47,7 +47,7 @@ OpenProject can log at different service levels, the default being `info`. You cFor example, to set this in the packaged installation, use the following command:-```bash+```shellopenproject config:set OPENPROJECT_LOG__LEVEL="debug"service openproject restart```diff --git a/docs/installation-and-operations/operation/reconfiguring/README.md b/docs/installation-and-operations/operation/reconfiguring/README.mdindex 0ecebf7c428..1d18951bf52 100644--- a/docs/installation-and-operations/operation/reconfiguring/README.md+++ b/docs/installation-and-operations/operation/reconfiguring/README.md@@ -10,7 +10,7 @@ sidebar_navigation:For packaged installations, you can restart the configuration process by issuing the following command on the server where OpenProject runs:-```bash+```shellsudo openproject reconfigure```@@ -28,12 +28,12 @@ The wizard will automatically set environment variables to be used by OpenProjecFor the Compose-based docker installation, you should not update the `docker-compose.yml` file as it refreshes with each pull, but use the file `docker-compose.override.yml` instead. There you could add any [environment variable](../../configuration/environment) that you may require. Docker Compose supports [file overrides](https://docs.docker.com/compose/extends/) so you may also want to use that. Then simply issue the following command:-```+```shelldocker-compose up -d```For all-in-one docker installations, you should update the environment file given to the `--env-file` docker option, and issue the following command:-```bash+```shelldocker restart openproject```diff --git a/docs/installation-and-operations/operation/restoring/README.md b/docs/installation-and-operations/operation/restoring/README.mdindex 04ba4cc4bff..f35ec5c1b1e 100644--- a/docs/installation-and-operations/operation/restoring/README.md+++ b/docs/installation-and-operations/operation/restoring/README.md@@ -12,7 +12,7 @@ Assuming you have a backup of all the OpenProject files at hand (see the [BackinAs a reference, we will assume you have the following dumps on your server, located in `/var/db/openproject/backup`:-```bash+```shellubuntu@ip-10-0-0-228:/home/ubuntu# sudo ls -al /var/db/openproject/backup/total 1680drwxr-xr-x 2 openproject openproject 4096 Nov 19 21:00 .@@ -28,7 +28,7 @@ drwxr-xr-x 6 openproject openproject 4096 Nov 19 21:00 ..First, it is a good idea to stop the OpenProject instance:-```bash+```shellsudo service openproject stop```@@ -36,13 +36,13 @@ sudo service openproject stopUntar the attachments to their destination:-```bash+```shellsudo tar xzf /var/db/openproject/backup/attachments-20191119210038.tar.gz -C /var/db/openproject/files```Untar the configuration files to their destination:-```bash+```shellsudo tar xzf /var/db/openproject/backup/conf-20191119210038.tar.gz -C /etc/openproject```@@ -52,7 +52,7 @@ To go through all configured wizards steps, use the `openproject reconfigure` opUntar the repositories to their destination:-```bash+```shellsudo tar xzf /var/db/openproject/backup/git-repositories-20191119210038.tar.gz -C /var/db/openproject/gitsudo tar xzf /var/db/openproject/backup/svn-repositories-20191119210038.tar.gz -C /var/db/openproject/svn```@@ -68,7 +68,7 @@ will be the `DATABASE_URL` of your **new** installation on that server._First, ensure the connection details about your database is the one you want to restore-```bash+```shellsudo openproject config:get DATABASE_URL#=> e.g.: postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<dbname>```@@ -77,7 +77,7 @@ Then, to restore the PostgreSQL dump please use the `pg_restore` command utilityThis is necessary since the backups of OpenProject does not clean statements to remove existing options and will lead to duplicate index errors when trying to restore to an existing database. The alternative is to drop/recreate the database manually (see below), if you have the permissions to do so.-```bash+```shellsudo pg_restore --clean --if-exists --dbname $(sudo openproject config:get DATABASE_URL) postgresql-dump-20200804094017.pgdump```@@ -92,7 +92,7 @@ As the `pg_restore` tries to apply the username from the dumped database as theIn this case you will have to drop and re-create the database, and then import it again.If you have access to the postgres user, it's simply a matter of starting the psql console like this:-```bash+```shellsudo su - postgres -c psql```@@ -111,7 +111,7 @@ Now you can restore the database as seen above.Finally, restart all your processes as follows:-```bash+```shellsudo service openproject restart```@@ -154,7 +154,7 @@ Given a SQL dump `openproject.sql` (or a `.pgdump` file) we can create a new OpeFirst we create the folder to be mounted by our OpenProject container.While we're at we also create the assets folder which should be mounted too.-```+```shellmkdir -p /var/lib/openproject/{pgdata,assets}```@@ -162,7 +162,7 @@ mkdir -p /var/lib/openproject/{pgdata,assets}Next we need to initialize the database.-```+```shelldocker run --rm -v /var/lib/openproject/pgdata:/var/openproject/pgdata -it openproject/community:13```@@ -174,20 +174,20 @@ This then has initialized the database under `/var/lib/openproject/pgdata` on yoNow we can restore the database. For this we mount the initialized `pgdata` folder using the postgres docker container.-```+```shelldocker run --rm -d --name postgres -v /var/lib/openproject/pgdata:/var/lib/postgresql/data postgres:13```Once the container is ready you can copy your SQL dump onto it and start `psql`.-```+```shelldocker cp openproject.sql postgres:/docker exec -it postgres psql -U postgres```In `psql` you then restore dump like this:-```+```sqlDROP DATABASE openproject;CREATE DATABASE openproject OWNER openproject;@@ -203,7 +203,7 @@ If you have a `.pgdump` file instead, for instance from a backup of a package-bthe process works almost the same. You still just copy the file into the container as shown above,but then you use `pg_restore` instead to restore it.-```+```shell# 1. copy .pgdump file into containerdocker cp postgresql-dump-20211119210038.pgdump postgres:/@@ -220,7 +220,7 @@ Once the dump is restored you can stop the postgres container using `docker stopNow you have to fix the permissions that were changed by the postgres container so OpenProjectcan use the files again.-```+```shellchown -R 102:102 /var/lib/openproject/pgdata```@@ -231,7 +231,7 @@ Your `pgdata` directory is now ready to be mounted by your final OpenProject conIf you also have file attachments to restore you can simply copy them into the attachments folder on the dockerhost which is mounted into the OpenProject container. For instance:-```+```shell# 1. extract filestar -C /var/lib/openproject/assets -xf attachments-20210211090802.tar.gz@@ -259,7 +259,7 @@ If you want to use this on-premises you will have to rename that to the default3. Double check the existing schemas using `\dn` on the psql console.4. If there are indeed 2 schemas, that is an extra schema on top of public, drop the public one and rename the other accordingly.-```psql+```sqlopenproject=# DROP SCHEMA public CASCADE;DROP SCHEMAopenproject=# ALTER SCHEMA "123456789_1234567_1234567a_123b_12c3_1234_c2a1a123c123" RENAME TO public;diff --git a/docs/installation-and-operations/operation/upgrading/README.md b/docs/installation-and-operations/operation/upgrading/README.mdindex dc13996ae18..7193251ed99 100644--- a/docs/installation-and-operations/operation/upgrading/README.md+++ b/docs/installation-and-operations/operation/upgrading/README.md@@ -27,7 +27,7 @@ Please follow the steps listed below according to your Linux distribution.### Debian / Ubuntu-```bash+```shellsudo apt-get updatesudo apt-get install --only-upgrade openprojectsudo openproject configure@@ -51,7 +51,7 @@ These two messages messages are expected, due to a change in Origin and Label re### CentOS / RHEL-```bash+```shellsudo yum updatesudo yum install openprojectsudo openproject configure@@ -59,7 +59,7 @@ sudo openproject configure### SuSE-```bash+```shellsudo zypper refresh openprojectsudo zypper update openprojectsudo openproject configure@@ -102,7 +102,7 @@ Note that this still takes previous values into consideration. Values that shoulWhen using the Compose-based docker installation, you can simply do the following:-```bash+```shelldocker-compose pulldocker-compose up -d```@@ -115,14 +115,14 @@ When using the all-in-one docker container, you need to perform the following st1. First, pull the latest version of the image:-```bash+```shelldocker pull openproject/community:VERSION# e.g. docker pull openproject/community:10```Then stop and remove your existing container (we assume that you are running with the recommended production setup here):-```bash+```shelldocker stop openprojectdocker rm openproject```@@ -130,7 +130,7 @@ docker rm openprojectFinally, re-launch the container in the same way you launched it previously.This time, it will use the new image:-```+```shelldocker run -d ... openproject/community:VERSION```@@ -145,7 +145,7 @@ You can extract your data from the existing container and mount it in a new oneYou can copy the data from the container using `docker cp` like this:-```+```shell# Find out the container name with `docker ps`, we use `openproject-community1` here.# The target folder should be what ever persistent volume you have on the system, e.g. `/volume1`.docker cp openproject-community1:/var/openproject/assets /volume1/openproject/assets@@ -154,7 +154,7 @@ docker cp openproject-community1:/var/openproject/pgdata /volume1/openproject/pgMake sure the folders have the correct owner so the new container can read and write them.-```+```shellsudo chown -R 102 /volume1/openproject/*```@@ -216,7 +216,7 @@ As has been reported from the community, [there appear to be issues with NPM lefTo ensure the package's node_modules folder matches your local version, we recommend you simply remove `/opt/openproject/frontend/node_modules` entirely **before** installing the package-```+```shellrm -rf /opt/openproject/frontend/node_modules# Continue with the installation steps described below```diff --git a/docs/system-admin-guide/authentication/kerberos/README.md b/docs/system-admin-guide/authentication/kerberos/README.mdindex abc77885b04..a864937ba14 100644--- a/docs/system-admin-guide/authentication/kerberos/README.md+++ b/docs/system-admin-guide/authentication/kerberos/README.md@@ -27,7 +27,7 @@ Create the service principal (e.g. using `kadmin`) and a keytab for OpenProject-```bash+```shell# Assuming you're in the `kadmin.local` interactive commandaddprinc -randkey HTTP/openproject.example.com@@ -40,7 +40,7 @@ This will output a keytab file for the realm selected by `kadmin` (in the aboveYou still need to make this file readable for Apache. For Debian/Ubuntu based systems, the Apache user and group is `www-data`. This will vary depending on your installation-```bash+```shellsudo chown www-data:www-data /etc/apache2/openproject.keytabsudo chmod 400 /etc/apache2/openproject.keytab```@@ -51,7 +51,7 @@ sudo chmod 400 /etc/apache2/openproject.keytabFirst, ensure that you install the `mod_auth_kerb` apache module. The command will vary depending on your installation. On Debian/Ubuntu based systems, use the following command to install:-```bash+```shellsudo apt install libapache2-mod-auth-gssapi```@@ -110,16 +110,16 @@ As the last step, you need to tell OpenProject to look for the `X-Authenticated-As with all the rest of the OpenProject configuration settings, the Kerberos header configuration can be provided via environment variables. For example:-```bash+```shellopenproject config:set OPENPROJECT_AUTH__SOURCE__SSO_HEADER="X-Authenticated-User"openproject config:set OPENPROJECT_AUTH__SOURCE__SSO_SECRET="MyPassword"```In case you want to make the header optional, i.e. the header may or may not be present for a subset of users going through Apache, you can set the following value:- ```bash- openproject config:set OPENPROJECT_AUTH__SOURCE__SSO_OPTIONAL=true- ```+```shell+openproject config:set OPENPROJECT_AUTH__SOURCE__SSO_OPTIONAL=true+```Please note the differences between single underscores (`_`) and double underscores (`__`) in these environment variables, as the single underscore denotes namespaces.diff --git a/docs/system-admin-guide/authentication/ldap-authentication/ldap-group-synchronization/README.md b/docs/system-admin-guide/authentication/ldap-authentication/ldap-group-synchronization/README.mdindex aacb0ea6dcc..830cbdd7ec6 100644--- a/docs/system-admin-guide/authentication/ldap-authentication/ldap-group-synchronization/README.md+++ b/docs/system-admin-guide/authentication/ldap-authentication/ldap-group-synchronization/README.md@@ -84,7 +84,7 @@ Click on *Create* to finish the creation of the synchronized group. The LDAP meIf you want to trigger the synchronization *manually* you can do so by running the respective rake task directly.In the packaged installation, for instance, this would work like this:-```+```shellsudo openproject run bundle exec rake ldap_groups:synchronize```diff --git a/docs/system-admin-guide/authentication/oauth-applications/README.md b/docs/system-admin-guide/authentication/oauth-applications/README.mdindex 38b25a8a0c8..54e0a3ea873 100644--- a/docs/system-admin-guide/authentication/oauth-applications/README.md+++ b/docs/system-admin-guide/authentication/oauth-applications/README.md@@ -89,7 +89,7 @@ We do this manually in the command line using cURL. Please replace:* `<Authentication code>` with the code you obtained above,* and `<Redirect URI>` with the redirect URI as configured above.-```+```shell$ curl --request POST \--url 'https://example.com/oauth/token' \--header 'content-type: application/x-www-form-urlencoded' \@@ -102,7 +102,7 @@ $ curl --request POST \The response will look like this:-```+```json{"access_token": "Ize6vvCIeENQ_suzd9kBJ6BxDNpxcumfTfweZQaOoJc","token_type": "Bearer",@@ -126,7 +126,7 @@ For example, the following cURL command fetches all projects from the API V3. Pl* `example.com` with the IP/host name of your OpenProject instance, and* `<Token>` with the bearer token you obtained above.-```+```shell$ curl --request GET 'https://example.com/api/v3/projects' \--header 'Authorization: Bearer <Token>'````diff --git a/docs/system-admin-guide/authentication/openid-providers/README.md b/docs/system-admin-guide/authentication/openid-providers/README.mdindex 905f7b025bd..b5481957e61 100644--- a/docs/system-admin-guide/authentication/openid-providers/README.md+++ b/docs/system-admin-guide/authentication/openid-providers/README.md@@ -199,7 +199,7 @@ A: This can happen if you previously created user accounts in OpenProject with tSpawn an interactive console in OpenProject. The following example shows the command for the packaged installation.See [our process control guide](../../../installation-and-operations/operation/control/) for information on other installation types.-```+```shellsudo openproject run console# or if using docker:# docker-compose run --rm web bundle exec rails console@@ -207,7 +207,7 @@ sudo openproject run consoleOnce in the console you can then enter the following to enable the setting and leave the console.-```+```shellSetting.oauth_allow_remapping_of_existing_users = trueexit```diff --git a/docs/system-admin-guide/authentication/saml/README.md b/docs/system-admin-guide/authentication/saml/README.mdindex 50053a7c3e6..34661f1c021 100644--- a/docs/system-admin-guide/authentication/saml/README.md+++ b/docs/system-admin-guide/authentication/saml/README.md@@ -52,7 +52,7 @@ As with [all the rest of the OpenProject configuration settings](../../../instalExample-```bash+```shell# Name of the provider, leave this at saml unless you use multiple providersOPENPROJECT_SAML_SAML_NAME="saml"@@ -102,7 +102,7 @@ The SAML settings can also be changed at runtime in the database through the OpeAs opposed to other settings there is no user interface for this.That means it's best to set them using the console.-```+```shell# package based installation:> sudo openproject run console@@ -165,7 +165,7 @@ Setting.plugin_openproject_auth_saml = Hash(Setting.plugin_openproject_auth_samlIn your OpenProject packaged installation, you can modify the `/opt/openproject/config/configuration.yml` file.Edit the file in your favorite editor-```+```shellvim /opt/openproject/config/configuration.yml```@@ -382,7 +382,7 @@ You can configure OpenProject to restrict which users can register on the systemBy default, users returning from a SAML idP will be automatically created. If you'd like for the SAML integration to respect the configured self-registration option, please use this setting:-```yml+```yamldefault:# <-- other configuration -->mysaml1:@@ -481,7 +481,7 @@ OpenProject needs the certificate or fingerprint of the ADFS to validate the sigIn OpenProject, these are the variables you will need to set. Please refer to the above documentation for the different ways you can configure these variables OpenProject-```bash+```shellOPENPROJECT_SAML_SAML_NAME="saml"OPENPROJECT_SAML_SAML_DISPLAY__NAME="ADFS SSO" # This is the text shown to users in OpenProject, freely change this valueOPENPROJECT_SAML_SAML_ATTRIBUTE__STATEMENTS_EMAIL="[mail]"@@ -540,7 +540,7 @@ To view the certificate in Base64 encoding, go to the menu "Realm settings" andIn OpenProject, these are the variables you will need to set. Please refer to the above documentation for the different ways you can configure these variables OpenProject-```bash+```shellOPENPROJECT_SAML_SAML_NAME="saml"OPENPROJECT_SAML_SAML_DISPLAY__NAME="Keycloak SSO" # This is the text shown to users in OpenProject, freely change this valueOPENPROJECT_SAML_SAML_ATTRIBUTE__STATEMENTS_EMAIL="[mail]"@@ -568,7 +568,7 @@ A: This can happen if you previously created user accounts in OpenProject with tSpawn an interactive console in OpenProject. The following example shows the command for the packaged installation.See [our process control guide](../../../installation-and-operations/operation/control/) for information on other installation types.-```bash+```shellsudo openproject run console> Setting.oauth_allow_remapping_of_existing_users = true> exitdiff --git a/docs/system-admin-guide/backup/README.md b/docs/system-admin-guide/backup/README.mdindex 56d95039f9f..4633a15c330 100644--- a/docs/system-admin-guide/backup/README.md+++ b/docs/system-admin-guide/backup/README.md@@ -48,7 +48,7 @@ a logged-in user's desktop.As a system administrator you can skip this period by running the following rake task on the server's terminal:-```+```shellsudo openproject run rake backup:allow_now```diff --git a/docs/system-admin-guide/design/pdf-export-styles/README.md b/docs/system-admin-guide/design/pdf-export-styles/README.mdindex 51a275e60f8..7aac2bf2fb8 100644--- a/docs/system-admin-guide/design/pdf-export-styles/README.md+++ b/docs/system-admin-guide/design/pdf-export-styles/README.md@@ -22,7 +22,7 @@ Properties to set bordersKey: `border`Example:-```yml+```yamlborder_color: F000FFborder_color_top: 000FFFborder_color_bottom: FFF000@@ -58,7 +58,7 @@ Styling for the cover page of the PDF report exportKey: `cover`Example:-```yml+```yamlcover:header: {}footer: {}@@ -78,7 +78,7 @@ Styling for the cover page footer of the PDF report exportKey: `cover_footer`Example:-```yml+```yamlfooter:offset: 20size: 10@@ -97,7 +97,7 @@ Styling for the cover page header of the PDF report exportKey: `cover_header`Example:-```yml+```yamlheader:logo_height: 25border: {}@@ -118,7 +118,7 @@ Styling for the cover page header border of the PDF report exportKey: `cover_header_border`Example:-```yml+```yamlborder:color: d3dee3height: 1@@ -140,7 +140,7 @@ Styling for the hero banner at the bottom at the cover pageKey: `cover_hero`Example:-```yml+```yamlheader:padding_right: 150padding_top: 120@@ -164,7 +164,7 @@ Properties to set the font styleKey: `font`Example:-```yml+```yamlfont: OpenSanssize: 10character_spacing: 0@@ -201,7 +201,7 @@ Properties to set marginsKey: `margin`Example:-```yml+```yamlmargin: 10mmmargin_top: 15mm```@@ -221,7 +221,7 @@ Styling a clickable linkKey: `link`Example:-```yml+```yamllink:color: '000088'```@@ -237,7 +237,7 @@ Styling for content of work package description and long text custom fieldsKey: `markdown`Example:-```yml+```yamlmarkdown:font: {}header: {}@@ -290,7 +290,7 @@ Styling to denote a paragraph as quoteKey: `blockquote`Example:-```yml+```yamlblockquote:background_color: f4f9ffsize: 14@@ -320,7 +320,7 @@ Styling to denote a word or phrase as codeKey: `code`Example:-```yml+```yamlcode:font: Consolascolor: '880000'@@ -337,7 +337,7 @@ Styling to denote a paragraph as codeKey: `codeblock`Example:-```yml+```yamlcodeblock:background_color: F5F5F5font: Consolas@@ -360,7 +360,7 @@ codeblock:Key: `header`Example:-```yml+```yamlheader:styles:- bold@@ -389,7 +389,7 @@ Tables without or empty header rows can be styled differently.Key: `headless_table`Example:-```yml+```yamlheadless_table:auto_width: truecell:@@ -411,7 +411,7 @@ Styling for horizontal linesKey: `hrule`Example:-```yml+```yamlhrule:line_width: 1```@@ -428,7 +428,7 @@ Styling of imagesKey: `image`Example:-```yml+```yamlimage:max_width: 50mmmargin: 2mm@@ -451,7 +451,7 @@ image:Key: `ordered_list`Example:-```yml+```yamlordered_list:spacing: 2mmpoint_inline: false@@ -469,7 +469,7 @@ ordered_list:Key: `ordered_list_point`Example:-```yml+```yamlordered_list_point:template: "<number>."alphabetical: false@@ -492,7 +492,7 @@ A block of textKey: `paragraph`Example:-```yml+```yamlparagraph:align: justifypadding_bottom: 2mm@@ -509,7 +509,7 @@ paragraph:Key: `table`Example:-```yml+```yamltable:auto_width: trueheader:@@ -534,7 +534,7 @@ table:Key: `task_list_point`Example:-```yml+```yamltask_list_point:checked: "☑"unchecked: "☐"@@ -553,7 +553,7 @@ task_list_point:Key: `unordered_list`Example:-```yml+```yamlunordered_list:spacing: 1.5mmpadding_top: 2mm@@ -571,7 +571,7 @@ unordered_list:Key: `unordered_list_point`Example:-```yml+```yamlunordered_list_point:sign: "•"spacing: 0.75mm@@ -590,7 +590,7 @@ Styling for the PDF table exportKey: `overview`Example:-```yml+```yamloverview:group_heading: {}table: {}@@ -608,7 +608,7 @@ Styling for the group lavel if grouping is activatedKey: `group_heading`Example:-```yml+```yamlgroup_heading:size: 11styles:@@ -626,7 +626,7 @@ group_heading:Key: `table`Example:-```yml+```yamltable:subject_indent: 0margin_bottom: 20@@ -659,7 +659,7 @@ Properties to set paddingsKey: `padding`Example:-```yml+```yamlpadding: 10mmpadding_top: 15mm```@@ -677,7 +677,7 @@ padding_top: 15mmKey: `page_footer`Example:-```yml+```yamlpage_footer:offset: -30size: 8@@ -694,7 +694,7 @@ page_footer:Key: `page_header`Example:-```yml+```yamlpage_header:align: leftoffset: 20@@ -714,7 +714,7 @@ The main page title headingKey: `page_heading`Example:-```yml+```yamlpage_heading:size: 14styles:@@ -734,7 +734,7 @@ Styling for logo image in the page header.Key: `page_logo`Example:-```yml+```yamlpage_logo:height: 20align: right@@ -753,7 +753,7 @@ Properties to set the basic page settingsKey: `page`Example:-```yml+```yamlpage:page_size: EXECUTIVEmargin_top: 60@@ -780,7 +780,7 @@ Styling for a table cellKey: `table_cell`Example:-```yml+```yamltable_cell:size: 9color: '000000'@@ -801,7 +801,7 @@ Styling for a table header cellKey: `table_header`Example:-```yml+```yamltable_header:size: 9styles:@@ -821,7 +821,7 @@ Styling for the table of content of the PDF report exportKey: `toc`Example:-```yml+```yamltoc:subject_indent: 4indent_mode: stairs@@ -856,7 +856,7 @@ Default styling for TOC items on all levels.<br/>use item_level_x` as key for TOKey: `item`Example:-```yml+```yamlitem:size: 9color: '000000'@@ -882,7 +882,7 @@ Key: `item_level_x`Key: `title`Example:-```yml+```yamltitle:max_height: 30spacing: 10@@ -902,7 +902,7 @@ title:Key: `subheading`Example:-```yml+```yamlsubheading:max_height: 30size: 10@@ -921,7 +921,7 @@ subheading:Key: `heading`Example:-```yml+```yamlheading:spacing: 10size: 32@@ -942,7 +942,7 @@ Styling for the Work package sectionKey: `work_package`Example:-```yml+```yamlwork_package:margin_bottom: 20subject: {}@@ -972,7 +972,7 @@ Styling for the Work package attributes tableKey: `attributes_table`Example:-```yml+```yamlattributes_table:margin_bottom: 10cell:@@ -1002,7 +1002,7 @@ Label headline for work package description and long text custom fieldsKey: `markdown_label`Example:-```yml+```yamlmarkdown_label:size: 12styles:@@ -1023,7 +1023,7 @@ Margins for work package description and long text custom fieldsKey: `markdown_margin`Example:-```yml+```yamlmarkdown_margin:margin_bottom: 16```@@ -1039,7 +1039,7 @@ Styling for the Work package subject headlineKey: `subject`Example:-```yml+```yamlsubject:size: 10styles:@@ -1057,7 +1057,7 @@ subject:Key: `subject_level_x`Example:-```yml+```yamlsubject_level_1:size: 14styles:@@ -1084,4 +1084,4 @@ available units are`in` - Inch, `ft` - Feet, `yr` - Yard-`pt` - [Postscript point](https://en.wikipedia.org/wiki/Point_(typography)#Desktop_publishing_point) (default if no unit is used)\ No newline at end of file+`pt` - [Postscript point](https://en.wikipedia.org/wiki/Point_(typography)#Desktop_publishing_point) (default if no unit is used)diff --git a/docs/system-admin-guide/integrations/nextcloud/README.md b/docs/system-admin-guide/integrations/nextcloud/README.mdindex 22b6f05374f..0266f4ff82e 100644--- a/docs/system-admin-guide/integrations/nextcloud/README.md+++ b/docs/system-admin-guide/integrations/nextcloud/README.md@@ -212,7 +212,7 @@ On Nextcloud inside the _OpenProject Integration_ App, when adding the OpenProje- If your Nextcloud and OpenProject servers are both in a local network, it might be necessary to explicitly [allow local remote servers in Nextcloud](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html) by setting a system configuration via your Nextcloud command line. This allows Nextcloud to connect to other local servers. Use the command `sudo -u www-data php occ config:system:set allow_local_remote_servers --value 1` in order to enable the setting for Nextcloud.- Your Nextcloud server does not have access to the OpenProject server. To test the connection between Nextcloud and OpenProject, you can use the following command on your Nextcloud server's command line:- ```bash+ ```shellcurl https://openproject.example.com```In case the `curl` command above results in an error pay attention what it is telling you. Typical reasons for connection issues are misconfigured firewalls, proxies, or a bad TLS/SSL setup.@@ -286,13 +286,13 @@ On OpenProject inside the storage administration (*Administration → File stora- The host address could be simply wrong. Please check in a separate browser tab that the URL that you have provided is correct. Nextcloud should load.- Your OpenProject server does not have access to the Nextcloud server. To test the connection between OpenProject and Nextcloud, you can use the following command on your OpenProject server's command line:- ```bash+ ```shellcurl -H 'OCS-APIRequest:true' -H 'Accept:application/json' https://nextcloud.example.com/nextcloud/ocs/v2.php/cloud/capabilities```If Nextcloud is setup correctly the response should look similar to the following. Pay special attention to current Nextcloud version, which in this example here is "24.0.6". At the time of writing this documentation the minimum version of Nextcloud is 22.- ```+ ```json{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"version":{"major":24,"minor":0,"micro":6,"string":"24.0.6","edition":"","extendedSupport":false},"capabilities":{"bruteforce":{"delay":0},"metadataAvailable":{"size":["\/image\\\/.*\/"]},"theming":{"name":"Nextcloud","url":"https:\/\/nextcloud.com","slogan":"a safe home for all your data","color":"#0082c9","color-text":"#ffffff","color-element":"#0082c9","color-element-bright":"#0082c9","color-element-dark":"#0082c9","logo":"https:\/\/nextcloud.example.com\/nextcloud\/core\/img\/logo\/logo.svg?v=0","background":"https:\/\/nextcloud.example.com\/nextcloud\/core\/img\/background.png?v=0","background-plain":false,"background-default":true,"logoheader":"https:\/\/nextcloud.example.com\/nextcloud\/core\/img\/logo\/logo.svg?v=0","favicon":"https:\/\/nextcloud.example.com\/nextcloud\/core\/img\/logo\/logo.svg?v=0"}}}}}```If you do not get such a response check out what the `curl` command above is telling you. Typical reasons for connection issues are misconfigured firewalls, proxies, or a bad TLS/SSL setup.@@ -308,13 +308,13 @@ Attention: Please do not confuse the CA for the Nextcloud server's certificate wThe integration OpenProject with Nextcloud makes use of authorized HTTP requests between the two servers. The HTTP requests contain a `Authorization` header, containing a `Bearer` access token. Sometimes Nextcloud installations are not fully setup and the HTTP server strips the `Authorization` header, with the consequence that Nextcloud does not know which Nextcloud user is requesting. Run the following command on the command line of your OpenProject server to check that your installation is complete- ```bash+ ```shellcurl --location --request GET 'https://nextcloud.example.com/index.php/apps/integration_openproject/check-config' --header 'Authorization: foo'```If Nextcloud setup correctly the response should look like the following- ```+ ```json{"user_id":"","authorization_header":foo}```