Platform.sh is a unified, secure, enterprise-grade platform for building, running and scaling web applications.
This repository is used with ddev add-on get ddev/ddev-platformsh to get a rich integration between your checked-out Platform.sh project and DDEV.
Make sure you have DDEV v1.24.3+ installed
- Clone your project repository (e.g.
platform get <projectid>) cdinto your project directory- Run
ddev configand answer the questions as appropriate - Run
ddev add-on get ddev/ddev-platformshand answer the questions as appropriate - Run
ddev start - (Optional) Run
ddev pull platformto retrieve a copy of the database and contents from the project's file mounts from the environment you entered in step #5. (If you only want to retrieve the database (skipping the file mounts), add the--skip-filesflag to theddev pull platformcommand.)
To upgrade your version of ddev-platformsh, repeat the ddev add-on get ddev/ddev-platformsh to get the latest release. To see the installed version, ddev add-on list --installed.
If you change your .platform.app.yaml or something in your .platform directory, repeat the ddev add-on get ddev/ddev-platformsh so that the generated configuration for DDEV will be updated.
- If your local project has a different database type than the upstream (Platform.sh) database, it will conflict, so please back up your database with
ddev export-dbandddev deletebefore starting the project with new config based on upstream. - Your experience is super-important: Please let us know about how it went for you in any of the DDEV support venues
- Works with many projects of type
php, for example,php:8.2orphp:8.3. It does not work with non-php projects. - Takes your checked-out Platform.sh project and configures DDEV based on that information.
- PHP and Database version
- Hooks are converted to DDEV post-start hooks
- A working
ddev pull platformintegration with all mounts is created. - Exposes specific
$PLATFORM_variables (e.g.,$PLATFORM_RELATIONSHIPS,$PLATFORM_ROUTES)
- Supports the following services:
- Databases
- MariaDB
- Oracle MySQL
- PostgreSQL
- Redis
- Redis-persistent
- Memcached
- Elasticsearch
- Databases
- Provides the following Platform.sh-provided environmental variables:
- PLATFORM_APP_DIR
- PLATFORM_APPLICATION_NAME
- PLATFORM_CACHE_DIR
- PLATFORM_ENVIRONMENT
- PLATFORM_PROJECT
- PLATFORM_PROJECT_ENTROPY
- PLATFORM_RELATIONSHIPS
- PLATFORM_ROUTES
- PLATFORM_TREE_ID
- PLATFORM_VARIABLES
These Platform.sh templates are included in the automated tests that run nightly. They will be growing in maturity with your feedback!
(Each of the above but magento2ce has automated tests.)
- Populate important PLATFORMSH environment variables that would be found upstream
- Populate PHP and other dependencies configured upstream
- Automatically figure out the name and other information of the upstream project
- Automatically configure the .ddev/providers/platform so you can immediately do a
ddev pull platformwith no configuration effort. - Let us know what's important to you!
Maintained by @rfay