Skip to content
Snippets Groups Projects
Unverified Commit 7c24e65f authored by Hussain Abbas's avatar Hussain Abbas
Browse files

Issue #3466174 by hussainweb: Add contrib script

parent 2b6181e8
No related branches found
No related tags found
1 merge request!11Issue #3466174 by hussainweb: Add contrib script
Pipeline #245148 passed with warnings
composer.lock
/vendor/
.idea/
##########################################################
# Files generated by ddev-drupal-contrib, or related to it.
##########################################################
/.editorconfig
/.gitattributes
# We don't want to commit .ddev configuration either. We can regenerate it
# using a script. This is required so that we can switch between versions
# of Drupal.
/.ddev/
# We don't want to commit Drupal core with the module.
/web/
# We don't want these files and we'd rather use the defaults both in local
# testing and in CI. But if we edit one of these files to update the standards,
# then remove the line from here so that you can commit the file.
/.prettierignore
/.prettierrc.json
/phpcs.xml.dist
# End files generated by ddev-drupal-contrib
#!/usr/bin/env bash
DIR_NAME=${PWD##*/}
NAME=${DIR_NAME//_/-}
DRUPAL_VER=${1:-drupal}
ddev stop
ddev delete -O
rm -rf .ddev/ web/ vendor/
ddev config --project-name=$NAME-$DRUPAL_VER --project-type=$DRUPAL_VER --docroot=web --create-docroot --php-version=8.3 --database=mariadb:11.4
ddev get ddev/ddev-drupal-contrib
ddev start
ddev poser
cp web/sites/example.settings.local.php web/sites/default/settings.local.php
echo "if (file_exists(\$app_root . '/' . \$site_path . '/settings.local.php')) {
include \$app_root . '/' . \$site_path . '/settings.local.php';
}" >> web/sites/default/settings.php
ddev symlink-project
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment