2 options
Drush for developers : effectively manage Drupal projects using Drush / Juampy Novillo Requena.
EBSCOhost Academic eBook Collection (North America) Available online
EBSCOhost Academic eBook Collection (North America)- Format:
- Book
- Author/Creator:
- Requena, Juampy Novillo, author.
- Series:
- Community experience distilled.
- Community Experience Distilled
- Language:
- English
- Subjects (All):
- Drupal (Computer file).
- Web sites--Design.
- Web sites.
- Web site development.
- Physical Description:
- 1 online resource (180 p.)
- Edition:
- 2nd ed.
- Place of Publication:
- Birmingham, England : Packt Publishing, 2015.
- Language Note:
- English
- Summary:
- This book is a best fit for backend developers with a basic knowledge of Drupal's APIs and some experience using the command line. Perhaps you already worked on one or two Drupal projects, but have never dived deep into Drush's toolset. In any case, this book will give you a lot of advice by covering real-world challenges in Drupal projects that can be solved using Drush.
- Contents:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction, Installation, and Basic Usage; Installation requirements; Operating system; PHP; Installing Composer; Drush installation on Linux and OSX; Manual installation; The Drush command structure; Executing a command; Providing arguments to a command; Altering a command's behavior through options; Structuring command invocations; Command aliases; Understanding Drush's context system; Setting the context manually; Summary
- Chapter 2: Keeping Database Configuration and Code TogetherMeeting the update path; Rebuilding the registry; Breaking the registry; Rebuilding Drupal's registry; Running database updates; Managing features; Exporting configuration into code; Running the update path on a different environment; Analyzing results; Reverting the feature components programmatically; Summary; Chapter 3: Running and Monitoring Tasks in Drupal Projects; Running periodic tasks with cron; Disabling Drupal's cron; Verifying the current cron frequency; Overriding cron frequency and exporting it to code
- Running cron with DrushScheduling cron runs with Jenkins; Installing Jenkins; Creating a job through the web interface; Monitoring cron runs; Running a task outside cron; Example - moving a Feeds importer from Drupal's cron to Drush; Exporting the Feeds importer into code; Writing a Drush command to trigger the Feeds importer; Running long tasks in batches; Sample Drush command using the Batch API; Batch API operations; Running the command and verifying the output; Evaluating code on the fly and running scripts; The php-eval command; The php-script command
- Script to create nodes and revisionsLogging messages in Drush; The verbose and quiet modes; Redirecting Drush output into a file; Implementing your own logging mechanism; Running a command in the background; Summary; Chapter 4: Error Handling and Debugging; Validating input; Validating an argument; Validating options; Ignoring options after the command name; Allowing additional options; Adding custom validation to a command; Rolling back when an error happens; Turning the update path into a single command; Browsing hook implementations; Inspecting the bootstrapping process
- Inspecting hook and function implementationsBrowsing and navigating hook implementations; Viewing source code of a function or method; Summary; Chapter 5: Managing Local and Remote Environments; Managing local environments; Managing remote environments; Verifying requirements; Accessing a remote server through a public key; Defining a group of remote site aliases for our project; Using site aliases in commands; Special site aliases; Running a command on all site aliases of a group; Avoiding a Drupal bootstrap with @none; Referencing the current project with @self
- Adding site alias support to the update path
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed February 11, 2015).
- ISBN:
- 9781784397036
- 1784397032
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.