Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to execute drush fst mytheme
from outside the Drupal installation folder (in a Grunt + grunt-drush package task for example) the drush_locate_root()
call returns false
causing the following error:
Source directory /themes/contrib/zurb_foundation/STARTER/ is not readable or does not exist.
Grunt task example:
'create-subtheme': {
args: [
'fst',
'mytheme',
'--root=' + buildProperties.target_dir + '/docroot',
]
}
Comment | File | Size | Author |
---|---|---|---|
#3 | subtheme-creation-from-outside-drupal-root-2657722-1.patch | 703 bytes | sveggiani |
Comments
Comment #2
sveggiani CreditAttribution: sveggiani at Globant commentedComment #3
sveggiani CreditAttribution: sveggiani at Globant commentedComment #4
sveggiani CreditAttribution: sveggiani at Globant commentedComment #5
kevinquillen CreditAttribution: kevinquillen at Velir commentedHas anyone had trouble in general using Drush to create a subtheme? I have found it to be hit or miss with Drush 8.
Comment #7
samuel.mortensonWhile we are considering moving to Drupal Console and removing our custom Drush commands for the 8.x-*.x branches, this change makes sense to me and is used in other contrib to determine the root Drupal path.