Platform.sh 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.
Platform.sh Quickstart¶
- Check out the site from platform.sh and then configure it with
ddev config
. You'll want to useddev start
and 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_environment
section in your global ddev configuration at ~/.ddev/global_config.yaml:
ddev restart
- 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
project_id
andenvironment_name
. - Run
ddev pull platform
. After you agree to the prompt, the current upstream database and files will be downloaded. - Optionally use
ddev push platform
to push local files and database to Platform.sh. Note thatddev push
is a command that can potentially damage your production site, so this is not recommended.
Usage¶
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 --skip-files
and --skip-db
flags.
Last update: July 7, 2022