platformsh/platformsh-cli — pull request #86 by OriPekelman (2014-09-11 14:45:03+00:00)
Title: Local tunnel

Hacky and unfinished.

BAsically what it does is open tunnel(s) for the relations (currently hardcoded).
I put local.platform.sh 127.0.0.1 in my /etc/hosts file but it would be much cooler to resolve local.platform.sh to 127.0.0.1 through dns...
There is some stuff to be done around configuration still for Drupal and probably Symfony (solr config in db?).

```text
A host has been configured as local.platform.sh

A tunnel to environment mybranch has been created (ssh -N -L 18080:solr.internal:8080 -L 16379:redis.internal:6379 -L 13306:database.internal:3306 pxbzj2d3rq6rc-mybranch@ssh.eu.platform.sh)
Connect to solr through local.platform.sh:18080Connect to redis through local.platform.sh:16379Connect to database through local.platform.sh:13306
Set your settings to connect local.platform.sh: for mysql (do not use localhost !)

You can see the site on http://local.platform.sh:8000
```