Drush on Bluehost

put this in your ~/.bash_profile:

alias php="/usr/php/56/bin/php"

alias composer="php ~/common/composer.phar"

alias drush="php ~/.composer/vendor/bin/drush.php"

 

And then run [source ~/.bash_profile] to load the settings.

The link below suggests adding this to your path, but I had nothing else to add in my bin directories:

export PATH="$HOME/bin:$HOME/.composer/vendor/bin:/usr/php/56/bin:$PATH:$HOME/pear/bin"

 

Some inspiration from:

https://www.reddit.com/r/drupal/comments/43ms40/solved_bluehost_drush_p…

<?php

$aliases['local'] = array(

  'root' => 'c:\xampp\sites\drupalarchitect\public',

  'uri'  => 'drupalarchitect.local',

);



$aliases['live'] = array(

  'root' => '/home3/andrewq6/www/drupalarchitect/public',

  'uri'  => 'drupalarchitect.info',

  'remote-user' => 'andrewq6',

  'remote-host' => 'andrewmorton.info',

  'path-aliases' => array(

    '%drush' => '/home3/andrewq6/.composer/vendor/drush',

    '%drush-script' => '/home3/andrewq6/.composer/vendor/drush/drush/drush.php',

  ),

);

To set up your alias file:

https://www.drupal.org/node/2640460

Tags