Drush User's Guide Год: 2012 Автор: Juan Pablo Novillo Requena Жанр: Drupal, Open Source, Web Development Издательство: Packt Publishing Ltd ISBN: 978-1-84951-798-0 Язык: Английский Формат: ePUB Качество: Изначально компьютерное (eBook) Интерактивное оглавление: Да Количество страниц: 120 Описание на русском языке: Drush - это Drupal shell, пакет для работы с друпалом и модулями через консоль (также доступен в репозитории последних версий ubuntu) (c) http://ru.wikipedia.org/wiki/Drupal Официальная страница модуля на Drupal.org: http://drupal.org/project/drush Официальная документация (англ.): http://drupal.org/node/477684 Демонстрационный сайт и домашняя страница: http://drush.ws/ Версия для ОС Windows: http://www.drush.org/drush_windows_installer Статьи на русском на хабре: http://habrahabr.ru/search/?q=%5Bdrush%5D&target_type=posts Локализация (перевод) на другие языки: http://localize.drupal.org/translate/downloads?project=drush - ищите поиском по странице Russian Описание: Drush is a command line interface for Drupal. Most of the tasks for building and maintaining a website are repetitive and involve filling in forms on administration pages. The majority of these tasks can be achieved with a single Drush command, shortening the development and maintenance time of a project drastically. Drush User’s Guide will allow you to be more productive and efficient in building and maintaining your Drupal sites through the command line. You will learn to install Drush on different platforms, and manage and configure your Drupal site by learning how to use and create Drush commands. Become a Drush expert by exploring its command toolkit; customizing it to suit your needs, and extending it with contributed modules. The command line will allow you to download, enable and upgrade Drupal projects in seconds. Back up your files, code and data in one single file, clear the cache, interact with databases, and deploy sites to remote machines – all using simply the command line. Use Drush with your own commands or alter existing ones; and extend the toolkit with a long list of contributed modules. Drush User’s guide has everything you need to extend your use of the command line to easily build and manage your Drupal sites. What you will learn from this book Learn how to install Drush on different systems, and download and install a full Drupal site in seconds.Understand Drush’s command structure with options and arguments.Discover how to set a site to maintenance mode and other common settings with just one command.Back up and restore code, files and databases into one file.Learn to write your own Drush commands and name sites by aliases for even shorter commands.Manage modules and users, monitor messages and run automated tests. Approach A practical guide full of examples and step-by-step instructions to start using Drush right from chapter 1. Who this book is for Drupal developers or themers who understand Drupal administration’s basic concepts. Drush can make building any kind of website quicker and easier, no matter if it is a development environment, beta, a simple blog or a complex system.
Примеры страниц
Оглавление
Preface Chapter 1: Installation and Basic Usage Chapter 2: Executing Drush Commands Chapter 3: Customizing Drush Chapter 4: Extending Drush Index Preface Chapter 1: Installation and Basic Usage Introduction Installation requirements Installing php-cli on Debian and Ubuntu Installing php-cli on Mac Installation for Linux and Unix (including Mac) The installation process Installation on Windows Automatic installation Manual installation Installing required libraries Replacing the TAR Library Installing Drush Configure environment variables Verify the installation Configuring php.ini Drush command structure Executing a command Providing arguments to a command Modifying a command's behavior through options Command aliases Telling Drush which site to work with Explicit methods Summary Chapter 2: Executing Drush Commands Downloading and installing Drupal (site-install) Configuring a site (variable-set and variable-get) Listing available variables Setting new values to variables Deleting variables Finding variables by name Working with projects (pm-X and user-X) Viewing project information Downloading and enabling modules Choosing a specific version of a project Disabling and uninstalling modules Viewing information about downloaded projects Upgrading modules Creating users and user roles Clearing out cached data and image styles (cache-clear and image-flush) Flushing the cache Deleting generated images from an image style Running cron (core-cron) Working with a site's database (sql-X commands) Backing up and restoring entire websites (archive-dump and archive-restore) Monitoring watchdog messages (watchdog-X) Summary Chapter 3: Customizing Drush Writing a custom command Writing our command Analyzing the definition of our command Analyzing the implementation of our command Validating input Altering and reacting to existing commands Altering an existing command Executing custom PHP scripts Executing PHP code from the command line Executing PHP scripts Type less and do more with Drush Site Aliases Configuring a Local Alias Organizing Site Aliases within our system Interacting with remote sites Grouping related Site Aliases Creating a Grouped Alias file with our Local Site Alias Adding a Site Alias for the development site Things we can do with remote Site Aliases Synchronizing databases Synchronizing directories Sharing configuration within Grouped Aliases Using configuration files Optimizing the terminal for Drush Saving Drush CLI configuration into our profile Summary Chapter 4: Extending Drush Backing up and migrating sites Installing the module and looking at the help information Generate and restore a backup Reinstall, inspect modules, and generate data Installing the module Reinstalling modules Inspecting source code Searching for hook implementations Viewing source code of functions and methods Generating users and nodes Working with features Managing views from the command line Generating a custom module codebase Packaging module information in make files Installing Drush Make Generating a make file out of an existing site Gathering information about our site and writing a make file Loading contents from the make file into a Drupal installation Summary Index
Доп. информация: Stop clicking around administration pages and start issuing commands straight to your Drupal sites. Write your own commands, hook in to alter existing ones and extend the toolkit with a long list of contributed modules. A practical guide full of examples and step-by-step instructions to start using Drush right from Chapter 1.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum