Programming2015. 10. 2. 14:43




Web Frameworkd으로 CMF(Content Management Framework)/CMS(** System)중 하나인 Drupal을 오래동안 써왔는데 Menu를 왔다리갔다리 하던 노가다가 많았는데 누가 이런 shell을 만들어서 하나의 모듈이 아니라 프로젝트로 독립했네요. 자주쓰는 기능은 commandline에서 치는게 훨씬 좋지요. 대단한 사람들입니다.

-----------------

Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. Drush can be extended by 3rd party commandfiles.

http://www.drush.org/

https://github.com/drush-ops/drush ; github를 통해서 공개가 되었네요

-----------------

CommandDescription
drush statusShows the status of your Drupal Install
drush dlDownload and install a drupal module. This defaults to the sites/all/modules directory.
drush enEnable a module
drush disDisable a module
drush upCheck for available updates, download updated modules, and run update.php
drush upCheck to see if the specific module needs updating, and if so, download it and run update.php
drush dl pathauto && drush en pathauto -yDownload Pathauto and its dependent module and enable it.
drush sql-dump --result-file=db-backup.sqlDump the entire Drupal database into a file called db-backup.sql. In other words, backup your database.
drush sql-cli < db-backup.sqlConnect to the database server and run the commands in db-backup.sql. In other words, restore the database from db-backup.sql
drush cc allClear all caches
drush vset preprocess_css 0 --yesTurn off CSS caching. This is useful when developing themes.
drush vset preprocess_js 0 --yes    Turn off JavaScript caching
drush cronRun cron
drush vset site_offline 1 --yesPut a site into maintenance mode (D6 only)
drush vset maintenance_mode 1 --yesPut a site into maintenance mode (D7 only)
drush vset site_offline 0 --yesTake a site out of maintenance mode (D6 only)
drush vset maintenance_mode 0 --yesTake a site out of maintenance mode (D7 only)

-----------------

  • drush pm-download cck views (Downloads specified modules with a space between each one.)
  • drush pm-enable cck views (Enables specified modules. No more checking boxes!)
  • drush pm-disable cck views (Disables specified modules)
  • drush pm-uninstall cck views (Uninstalls specified modules)
  • drush status (Shows the status of your Drupal Install)
  • drush pm-update (Updates all Modules and Drupal Core)
  • drush cache-clear (Clear all Cache)

-----------------


'Programming' 카테고리의 다른 글

Internet of Things(IOT) Programming  (0) 2015.10.13
Drupal Web Application Packages  (0) 2015.10.02
Python - JSON을 이용한 지진검색  (0) 2015.10.01
VM Virtualbox에 Ubuntu설치후  (0) 2015.10.01
Python - String, File, Regular Expression  (0) 2015.09.30
Posted by 쁘레드