modules-unraveled / drush-shell-aliases
Useful Drush shell-aliases for Drupal 8 development.
Installs: 719
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 2
Open Issues: 1
Type:drupal-drush
README
To use all of the commands in this file, you must have an alias file on each server named something like "mysite.aliases.drushrc.php". Information on examples is provided below.
Composer
If you use composer to install these, you'll need to add something like the following to your /drush/drushrc.php file
<?php
/**
* Load additional drushrc.php files
*/
if (file_exists(__DIR__ . '/contrib/drush-shell-aliases/drushrc.php')) {
include __DIR__ . '/contrib/drush-shell-aliases/drushrc.php';
}
How to Use These Commands
When setup, you could:
- Sync the prod database down to the local site by typing:
drush @mysite.loc data-live
- Or, fully rebuild your local site by typing:
drush @mysite.loc rebuild
Which:
- Runs "composer install" from the project root
- Syncs a copy of the live database
- Imports the current Git branch's configuration
Examples
Examples of the content required for each environment's alias files are provided in the Examples branch of this repo.