在windows 上使用Drush

使用了一段時間了, 現在才有時間介紹一下drush
有如 admin_menu, 用過便忘不了
基於 *nix 的 drush 簡單易用, 但windows 上便有些限制, 最常用的 drush dl views 用不了..
hack (不用cygwin):

1.
下載Drush http://drupal.org/project/drush, 解壓到 /path/to/drush

2.
下載並安裝:
http://gnuwin32.sourceforge.net/packages/libarchive.htm
http://gnuwin32.sourceforge.net/packages/gzip.htm
http://gnuwin32.sourceforge.net/packages/wget.htm

再將 控制台 > 進階 > 環境變數
新增 / 修改 PATH: C:\Program Files\GnuWin32\bin;/path/to/drush

3.
cd /path/to/drupal
drush.bat dl views

完成!!

p.s. admin_menu 之外, 我還一定會裝 vertical_tabs, drush, devel

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <h4> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options