drupal 8

By Bill Seremetis, 4 November, 2019

By using direnv you can set environmental variables depending on the current directory. This allows us to alter several variables, like the default Drush URI, by adding the following in our .envrc file:

export DRUSH_OPTIONS_URI=http://0.0.0.0:8888

With this, whenever you type drush uli a proper login link will be constructed.

But why stop here? We can use the same trick to make all composer binaries executable without having to type ./vendor/bin/ every time. Just add this to your .envrc file:

By Bill Seremetis, 8 March, 2018

Currently there is no tool to mass import redirects from a CSV file to Drupal 8. The module path_redirect_import tries to solve this, but I had limited success (2%) when using it with D8. So, me and my colleagues created this bash script to solve the problem. The CSV file must be format like this:

source (without leading slash),target (with leading slash)