Please provide your facebook page url to display on website

Tags phổ biến nhất

452 Câu hỏi

479 Trả lời

28 Bình luận

328 Thành viên

hướng dẫn cài drush cho drupal

giúp mình hướng dẫn cài drush cho drupal
Hỏi lúc tháng 8 30, 2014 trong drush bởi admin (31,630 điểm)

1 trả lời

0 đánh giá

INSTALLATION
============

The preferred way to install Drush is via our PEAR channel. See instructions at
http://drupal.org/project/drush. If you prefer a more manual install, see
below.

1. Place the uncompressed drush.tar.gz, drush.zip, or cloned git repository in
   a directory that is outside of your web root.

2. Make the 'drush' command executable:

     $ chmod u+x /path/to/drush/drush

3. Configure your system to recognize where Drush resides. There are 2 options:

  a) create a symbolic link to the Drush executable in a directory that is
     already in your PATH, e.g.:

       $ ln -s /path/to/drush/drush /usr/bin/drush

  b) explicitly add the Drush executable to the PATH variable which is defined
     in the the shell configuration file called .profile, .bash_profile,
     .bash_aliases, or .bashrc that is located in your home folder, i.e.:

       export PATH="$PATH:/path/to/drush:/usr/local/bin"

     Your system will search path options from left to right until it finds a
     result.

     To apply your changes to your current session, either log out and then log
     back in again, or re-load your bash configuration file, i.e.:

       $ source .bashrc

  NOTE: If you do not follow step 3, you will need to inconveniently run Drush
  commands using the full path to the executable "/path/to/drush/drush" or by
  navigating to /path/to/drush and running "./drush". The -r or -l options will
  be required (see USAGE, below).

4. Test that Drush is found by your system:

  $ which drush

5. Optional. Help the Drush development team by sending anonymized usage
   statistics.  To automatically send usage data, please add the following to a
   .drushrc.php file:

     $options['drush_usage_log'] = TRUE;
     $options['drush_usage_send'] = TRUE;

   Stats are usually logged locally and sent whenever log file exceeds 50Kb.
   Alternatively, one may disable automatic sending and instead use usage-view
   and usage-send commands to more carefully send data.

6. Optional. See examples/example.bashrc for instructions on how to add some
   useful shell aliases that provides even tighter integration between
   drush and bash. You may source this file directly into your shell by adding to
   your .bashrc (rr equivalent): source /path/to/drush/examples/example.bashrc

7. Optional. If you didn't source it in Step 6 above, see top of
   drush.complete.sh file for instructions adding bash completion for drush
   command to your shell.  Once configured, completion works for site aliases,
   command names, shell aliases, global options, and command-specific options.

8. Optional. If drush.complete.sh is being sourced (ideally in
   bash_completion.d), you can use the supplied __drush_ps1() sh function to
   add your current drush site (set with `drush use @sitename`) to your PS1
   prompt like so:

      if [ "\$(type -t __git_ps1)" ] && [ "\$(type -t __drush_ps1)" ]; then
        PS1='\u@\h \w$(__git_ps1 " (%s)")$(__drush_ps1 "[%s]")\$ '
      fi

   Putting this in a .bashrc/.bash_profile/.profile would produce this prompt:

     msonnabaum@hostname ~/repos/drush (master)[@sitename]$

Đã trả lời tháng 8 30, 2014 bởi admin (31,630 điểm)
Địa chỉ: 132B, Cách Mạng Tháng Tám, Phường 10, Q.3, Tp HCM.
Điện thoại: 0917237946. Di động: 0989195448
Copyright © 2014 viyouen.com. All Rights Reserved.
...