Created
February 6, 2017 14:29
-
-
Save c50/f7ce53e21709e5968ae8f75f3c1f5820 to your computer and use it in GitHub Desktop.
Drush aliases example on local setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Site alias for example.com | |
*/ | |
$aliases['c50'] = array( | |
'root' => './drupal-8.2.5', | |
'uri' => 'http://c50drupal.c50.be', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# | |
# DRUSH WRAPPER | |
# | |
# A wrapper script which launches the Drush that is in your project's /vendor | |
# directory. Copy it to the root of your project and edit as desired. | |
# You may rename this script to 'drush', if doing so does not cause a conflict | |
# (e.g. with a folder __ROOT__/drush). | |
# | |
# Below are options which you might want to add. More info at | |
# `drush topic core-global-options`: | |
# | |
# --local Only discover commandfiles/site aliases/config that are | |
# inside your project dir. | |
# --alias-path A list of directories where Drush will search for site | |
# alias files. | |
# --config A list of paths to config files | |
# --include A list of directories to search for commandfiles. | |
# | |
# Note that it is recommended to use --local when using a drush | |
# wrapper script. | |
# | |
# See the 'drush' script in the Drush installation root (../drush) for | |
# an explanation of the different 'drush' scripts. | |
# | |
# IMPORTANT: Modify the path below if your 'vendor' directory has been | |
# relocated to another location in your composer.json file. | |
# `../vendor/bin/drush.launcher --local $@` is a common variant for | |
# composer-managed Drupal sites. | |
# | |
cd "`dirname $0`" | |
./drupal-8.2.5/vendor/drush/drush/drush.php --local "$@" --alias-path='./' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment