Update Core and Modules Drupal 7 with Drush (spanish - video)

Actualizar versión del core de drupal con drush , ejecutar cron , actualizar base de datos y funciones básicas de drush.

https://vimeo.com/36280447

Install Drush on a Mac

Drush can be installed on a Mac using the Homebrew package manager, or manually using the following steps.

Download and unpack Drush

Download either the tar.gz or zip file from the Drush project page and unpack it into your home directory or a directory below your home directory. For example, if your home directory is /Users/myusername, unpacking the tar.gz or zip file there will create a folder /Users/myusername/drush.

Tell OS X where to find Drush

To tell your system where to find the Drush program, you can either:

  • add the directory where Drush was downloaded to your PATH by updating your Bash or Zsh profile; or
  • create a symbolic link from the Drush program to a directory in your PATH.

Add Drush directory to your PATH

The PATH shell variable tells OS X where to find programs that are run from the command line. You can update your PATH by editing the file .bash_profile (if you are using the Bash shell) or .zprofile (if you are using Zsh). These files are hidden files (name beginning with a dot) so they will usually not appear in the Finder.

Working with Drush on Mamp

The current version of MAMP may require some troubleshooting to get Drush to work correctly. Known issues include:

Genova: automate repetitive code writing

Genova is a Drush utility that automates repetitive code writing such as schema, hook implementations, drupal arrays, etc.

It is targeted at Drupal developers who regularly create custom Drupal modules. Genova is extensible. It provides an API so that any other module can create its own component generator by extending the basic GenComponent class and providing own code templates.

A similar tool that helps generating modules is Module builder

Drush commands for Drupal 7's Migrate module

Using drush, individual migrations can be imported and then rolled back. Running processes can be cleanly interrupted, individual source records can be migrated on their own, and performance can be instrumented.

drush help --filter=migrate provides a complete list of relevant commands

All commands in migrate: (migrate)

migrate-analyze (maz) Analyze the source fields for a migration.
migrate-audit (ma) View information on problems in a migration.
migrate-register (mreg) Register or re-register any statically defined migrations.
migrate-deregister Remove all tracking of a migration
migrate-fields-destination (mfd) List the fields available for mapping in a destination.
migrate-fields-source (mfs) List the fields available for mapping from a source.
migrate-import (mi, mim) Perform one or more migration processes
migrate-mappings (mm) View information on all field mappings in a migration.

Pages

Subscribe with RSS Subscribe to RSS - drush