Skip to main content
improve formatting
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

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

'domain.com:/home/user/public_html', 'uri' => 'domain.com', 'remote-user' => 'user', ); ?>
<?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?

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

'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?

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?

Source Link
Sage
  • 2.5k
  • 27
  • 46

Using drush into remote host is showing me local data

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

'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?