Windows 下配置 Drush 环境变量
in Others with 0 comment, Views is 65

Windows 下配置 Drush 环境变量

in Others with 0 comment, Views is 65

GitHub:https://github.com/drush-ops/drush

Windows

【注】若没有安装 Composer,请阅读《Windows 下配置 Composer 环境变量》

> composer global require 'drush/drush:~9.0' -vvv

之后配置全局变量

Windows 的 composer bin 一般位于 C:\Users\×××\AppData\Roaming\Composer\vendor\bin

没错,就是这么简单。之后就可以愉快的 drush 了。

Linux

# 安装 drush
> composer global require 'drush/drush:~9.0' -vvv
# 添加环境变量
> vim ~/.bash_profile
# ---------------------------
export PATH="$HOME/.composer/vendor/bin:$PATH"

# 执行
> source ~/.bash_profile
Responses
选择表情