Skip to content

Conversation

@jameswilson
Copy link
Contributor

Work in progress PR for #122


// Write drush alias.
$drush_alias_file_path = "{$_SERVER['HOME']}/.drush/{$app_name}.aliases.drushrc.php";
$drush_alias_file_path = "{$_SERVER['HOME']}/.drush/terra.{$app_name}.aliases.drushrc.php";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. sorry, this line is technically unrelated to this PR, but it is a bug. I can pull it out into a separate PR, if you want.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine this time.

When you see stuff like this just commit it separately. No need for a new PR, but I would be able to cherry-pick it out to master if it was in a separate commit.

@jonpugh
Copy link
Member

jonpugh commented Jun 1, 2016

Let me know if it works by having a console environments yml file!

I don't think you would need console inside the container, but even if you did, it would only need a small patch to https://github.com/terra-ops/docker-drush to get added.

@jameswilson jameswilson force-pushed the drupal-console-support branch from ed45fab to 3d2043f Compare June 1, 2016 15:16
@jameswilson
Copy link
Contributor Author

I removed the unrelated commit into a separate PR #124

* @return bool|mixed
*/
public function getDrupalConsolePort()
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, if i understand correctly the 'drush' image is just an SSH daemon, so you're saying we can just leverage the drush image. Maybe makes sense to rename the drush image to something more generic?

@jameswilson jameswilson force-pushed the drupal-console-support branch from 3d2043f to a2b0b63 Compare June 2, 2016 02:50
@jameswilson
Copy link
Contributor Author

So the console sites YML file doesn't work as I thought it would. And I'm not sure how to troubleshoot. One problem is i cant find a command to try to execute "remotely" because you have to be inside a drupal root in order to get access to a number of commands. But when you're inside a drupal root in your host machine filesystem thats being shared into a docker environment, and the settings.php file (or in my case settings.local.php file is modified to connect to a host called database that only makes sense inside the context of the docker container... then all the drupal commands fail with the same PDO error.

  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known  

This seems to be a fundamental Drupal console issue, OR I'm probably doing something wrong 😄 I'd appreciate some feedback or insight from @jmolivas if you can shed some light on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants