Skip to content

Commit

Permalink
Fixes drush-ops#38: Add composer install instructions to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Dec 19, 2017
1 parent 2af2e0c commit 750df3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ The Drush Launcher Phar is able to self update to the latest release.

Mac OSX systems are welcome to use Homebrew to install - `brew install drush-launcher`. To upgrade, run `brew upgrade drush-launcher`.

## Installation - Composer

Drush Launcher can also be installed via Composer, which can be easier on some systems, especially where Composer binaries are already on the system `$PATH`.

1. Run `composer global require drush/drush-launcher`.
1. Make sure your Composer binary directory is in your path. The best way to do this will vary slightly based on OS:
1. On Mac, add the following line to `.bash_profile`: `export PATH="$PATH:$HOME/.composer/vendor/bin"`
1. On Ubuntu, add the following line to `.bashrc`: `PATH="$PATH:$HOME/.config/composer/vendor/bin"`

## Alternatives

If you only have one codebase on your system (typical with VMs, Docker, etc,), you should add `/path/to/vendor/bin` to your $PATH. Drush9 is smart enough to find the PROJECT_ROOT and DRUPAL_ROOT when it is run from the bin directory.
Expand Down

0 comments on commit 750df3c

Please sign in to comment.