Skip to content

Commit 0dab1ea

Browse files
committed
install_on_ibexa_cloud.md: Update for ddev/ddev-ibexa-cloud
1 parent 2857364 commit 0dab1ea

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/ibexa_cloud/ddev_and_ibexa_cloud.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,30 @@ using the [`ibexa_cloud` command](https://cli.ibexa.co/).
3434
(Replace `<project-ID>` with the hash of your own project.
3535
See [`ibexa_cloud help get`](https://docs.platform.sh/administration/cli.html#3-use) for options like selecting another environment).
3636
1. Configures a new DDEV project.
37+
1. Configures the `ddev/ddev-ibexa-cloud` add-on.
38+
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.
3739
1. Ignores `.ddev/` directory from Git.
3840
(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).)
3941
1. Sets Composer authentication by using an already existing `auth.json` file.
40-
1. Creates a `public/var` directory if it doesn't exist, to allow the creation of `public/var/.platform.installed` by Platform.sh hook script.
41-
1. Installs the `ddev/ddev-ibexa-cloud` add-on which prompts for the Platform.sh API token, project ID and environment name.
42+
1. Installs the `ddev/ddev-ibexa-cloud` add-on.
4243
(Check `.ddev/config.ibexa-cloud.yaml` and adapt if needed. For example, you may have to comment out New Relic.)
43-
1. Changes `maxmemory-policy` from default `allkeys-lfu` to a [value accepted by the `RedisTagAwareAdapter`](https://github.com/symfony/cache/blob/5.4/Adapter/RedisTagAwareAdapter.php#L95).
4444
1. Starts the project.
45+
1. Install dependencies.
4546
1. Gets the content from Ibexa Cloud, both database and binary files by using `ddev pull ibexa-cloud` feature from the add-on.
46-
1. Restarts the project.
4747
1. Displays information about the project services.
4848
1. Opens the project in a browser.
4949

5050
```bash
5151
ibexa_cloud project:get <project-ID> my-ddev-project && cd my-ddev-project
52-
ddev config --project-type=php --web-environment-add COMPOSER_AUTH=''
52+
ddev config --project-type=php --php-version 8.1 --web-environment-add COMPOSER_AUTH='',DATABASE_URL=mysql://db:db@db:3306/db
53+
ddev config --web-environment-add IBEXA_PROJECT=$PROJECT,IBEXA_ENVIRONMENT=$ENVIRONMENT,IBEXA_APP=app
54+
ddev config --web-environment-add IBEXA_CLI_TOKEN=$IBEXA_CLI_TOKEN
5355
echo '.ddev/' >> .gitignore
5456
mkdir -p .ddev/homeadditions/.composer && cp <path-to-an>/auth.json .ddev/homeadditions/.composer
55-
if [ ! -d public/var ]; then mkdir public/var; fi
56-
ddev add-on get ddev/ddev-ibexa-cloud
57-
sed -i 's/maxmemory-policy allkeys-lfu/maxmemory-policy volatile-lfu/' .ddev/redis/redis.conf
57+
ddev add-on get ddev/ddev-ibexa-cloud
5858
ddev start
59+
ddev composer install
5960
ddev pull ibexa-cloud -y
60-
ddev restart
6161
ddev describe
6262
ddev launch
6363
```

0 commit comments

Comments
 (0)