You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ibexa_cloud/ddev_and_ibexa_cloud.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,38 +6,37 @@ description: Use DDEV to run an Ibexa Cloud project locally.
6
6
7
7
Two ways are available to run an [[= product_name_cloud =]] project locally with DDEV:
8
8
9
-
-[by using the Platform.sh's `ddev-platformsh` and `ddev-ibexa-cloud` add-ons](#with-the-ddev-platformsh-and-ddev-ibexa-cloud-add-ons)
10
-
-[like other existing project, without this add-on](#without-the-ibexa-cloud-add-on).
9
+
-[by using the `ddev-platformsh` and `ddev-ibexa-cloud` add-ons](#with-ibexa-cloud-add-ons)
10
+
-[like other existing project, without these add-ons](#without-ibexa-cloud-add-ons).
11
11
12
12
!!! note
13
13
14
14
The following examples use [[[= product_name_cloud =]] CLI (`ibexa_cloud`)](https://cli.ibexa.co/).
15
15
16
-
## With the `ddev-platformsh` and `ddev-ibexa-cloud` add-ons
16
+
## With Ibexa Cloud add-ons
17
17
18
18
To configure [`ddev/ddev-platformsh` add-on](https://github.com/ddev/ddev-platformsh) and [`ddev/ddev-ibexa-cloud` add-on](https://github.com/ddev/ddev-ibexa-cloud), you need a [Platform.sh API Token](https://docs.platform.sh/administration/cli/api-tokens.html).
19
19
20
20
The `ddev/ddev-platformsh` add-on configures the document root, the PHP version, the database, and the cache pool according to the [[= product_name_cloud =]] configuration.
21
21
About the search engine, the add-on can configure Elasticsearch but can't configure Solr.
22
22
If you use Solr on [[= product_name_cloud =]] and want to add it to your DDEV stack, see [Clustering with DDEV and `ibexa/ddev-solr` add-on](clustering_with_ddev.md#solr).
23
23
24
-
The `ddev/ddev-ibexa-cloud` add-on integrate the `ibexa_cloud` command,
24
+
The `ddev/ddev-ibexa-cloud` add-on integrates the `ibexa_cloud` command inside the container,
25
25
and eases the pull of cloud contents into the local installation.
26
26
27
27
`env:COMPOSER_AUTH` from Platform.sh can't be used, because JSON commas are incorrectly interpreted by `--web-environment-add`, which sees them as multiple variable separators.
28
28
But the variable must exist for Platform.sh `hooks` scripts to work.
29
29
To use an `auth.json` file for this purpose, see [Using `auth.json`](install_with_ddev.md#using-authjson).
30
30
31
-
You must remove Node.js and NVM installations as they're already included in DDEV.
32
-
33
31
The following sequence of commands:
34
32
35
33
1. Downloads the [[= product_name_cloud =]] project from the default environment "production"
36
34
into a new directory (for example `my-ddev-project`), using the [`ibexa_cloud` command](https://cli.ibexa.co/).
37
35
(Replace `<project-ID>` with the hash of your own project.
38
36
See [`ibexa_cloud help get`](https://docs.platform.sh/administration/cli.html#3-use) for options like selecting another environment).
39
37
1. Configures a new DDEV project.
40
-
1. Configures the `ddev/ddev-ibexa-cloud` add-on with `<project-ID>` and environment name (for example, `production`).
38
+
1. Configures the `ddev/ddev-ibexa-cloud` add-on with `<project-ID>`, environment name (for example, `production`),
39
+
and application name (for example, `app` from `name: app` line in `.platform.app.yaml` file).
41
40
1. Configures `ibexa_cloud` command token. See [Create an API token](https://docs.platform.sh/administration/cli/api-tokens.html#2-create-an-api-token) for more information.
42
41
1. Ignores `.ddev/` directory from Git.
43
42
(Some DDEV config could be committed like in [this documentation](https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/#extending-configyaml-with-custom-configyaml-files).)
sed -i 's/maxmemory-policy allkeys-lfu/maxmemory-policy volatile-lfu/' .ddev/redis/redis.conf
63
-
ddev add-on get ddev/ddev-ibexa-cloud
62
+
ddev add-on get ddev/ddev-ibexa-cloud
64
63
ddev start
65
64
ddev pull ibexa-cloud -y
66
65
ddev describe
@@ -71,13 +70,13 @@ ddev launch
71
70
72
71
The Platform.sh API token is set at user profile level, therefore it's stored globally under current user root as `PLATFORMSH_CLI_TOKEN` in `~/.ddev/global_config.yaml`.
73
72
74
-
## Without the Ibexa Cloud add-on
73
+
## Without Ibexa Cloud add-ons
75
74
76
75
The following example adapts the [manual method to run an already existing project](install_with_ddev.md#run-an-already-existing-project) to the Platform.sh case:
77
76
78
77
The following sequence of commands:
79
78
80
-
1. Downloads the [[= product_name_cloud =]] Platform.sh project from the default environment "production" into a new directory, based on the [Platform.sh CLI alias `ibexa_cloud` defined in introduction](#ibexa-cloud-and-ddev).
79
+
1. Downloads the [[= product_name_cloud =]] Platform.sh project from the default environment "production" into a new directory, using the [[[= product_name_cloud =]] CLI](https://cli.ibexa.co/).
81
80
(Replace `<project-ID>` with the hash of your own project. See [`ibexa_cloud help get`](https://docs.platform.sh/administration/cli.html#3-use) for options like selecting another environment).
0 commit comments