terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

Inaccurate use of localhost #31

Closed ennenine closed 9 years ago

ennenine commented 9 years ago

Localhost is assumed in a number of places. I believe this only functions on Linux and needs to be dynamic on non-linux systems.

The following commands: terra status terra app:status terra env:status

all report localhost:[port] when systems using boot2docker need a specific IP address (192.168.99.100) in my case.

Additionally, the use of localhost can be found in the drush aliases.

ennenine commented 9 years ago

It appears that Kitematic is picking up the correct IP and port, so it may be as simple as using whatever basic process they are using.

kitematic_and_terra_setup_docs_ _evernote_basic_and_dockerfile_-__users_nate_projects_public_docker-drush_-_atom

jonpugh commented 9 years ago

While I am down with adding docker machine, still think we should have a default hostname.

Let's make the default hostname a configuration item, it could ask the first time you run terra.

jonpugh commented 9 years ago

We resolved this for now in #56. Terra now asks you the default host for each App.