1

I have an alias setup for my remote host with the following in the script:

<?php
$aliases['lws'] = array(
    'root' => 'domain.com:/home/user/public_html',
    'uri' => 'domain.com',
    'remote-user' => 'user',
);
?>

But when I drush using (for example): drush @lws status

I get information back about my local machine and not about the remote machine. I know this is the case because my remote machine is Linux and my local machine is windows...and when I run drush from the remote machine itself it shows me different results than what drush on my local machine is giving me. Also the command above run locally shows me all the alias files I have setup on my local machine (for other drupal installs).

Any idea what might be going on here?

1
  • Show us the output of drush sa Commented May 19, 2015 at 8:19

1 Answer 1

0

It'd be interesting to see what results you'd get if you modify your script above by removing the domain.com: (in 'root'), to make it look like so:

<?php
$aliases['lws'] = array(
    'root' => '/home/user/public_html',
    'uri' => 'domain.com',
    'remote-user' => 'user',
);
?>

At least that would make it look more like the samples for 'dev' and 'prod' as documented in https://www.drupal.org/node/1401522 .

Curious to hear if this helps somehow ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.