Platform.sh Hosting Provider Integration¶
ddev provides integration with the Platform.sh Website Management Platform, which allows Platform.sh users to quickly download and provision a project from Platform.sh in a local ddev-managed environment.
ddev's Platform.sh integration pulls database and files from an existing Platform.sh site/environment into your local system so you can develop locally.
- Check out the site from platform.sh and then configure it with
ddev config. You'll want to use
ddev startand make sure the basic functionality is working.
Obtain and configure an API token.
a. Login to the Platform.sh Dashboard and go to Account->API Tokens to create an API token for ddev to use.
b. Add the API token to the
web_environmentsection in your global ddev configuration at ~/.ddev/global_config.yaml:
web_environment: - PLATFORMSH_CLI_TOKEN=abcdeyourtoken`
- Obtain your project id with
ddev exec platform. The platform tool should show you all the information about your account and project.
- In your project's .ddev/providers directory, copy platform.yaml.example to platform.yaml and edit the
ddev pull platform. After you agree to the prompt, the current upstream database and files will be downloaded.
- Optionally use
ddev push platformto push local files and database to Platform.sh. Note that
ddev pushis a command that can potentially damage your production site, so this is not recommended.
ddev pull platform will connect to Platform.sh to download database and files. To skip downloading and importing either file or database assets, use the