Connecting your local development environment to Platform.sh
Because your application may depend on a number of our managed services, your local development environment will need the same access
to those services that a deployed environment would have.
You can use the Platform.sh CLI command
platform tunnel:open to open an SSH tunnel to your services. This will allow
your application that is running on a local web server to access them.
Once you export the
PLATFORM_RELATIONSHIPS environment variable from your project, the local application will have the
credentials it expects to interact with your services. Export a
PORT variable, if your application requires one, and
you'll be all set up to run locally using your remote services.
These hosted services are identical to those you would use in your Platform.sh environments, for as long you need them locally.
When you're all done and ready to push your new feature for review, close your tunnels with the CLI command