Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
do_username
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
do_username
Commits
7c24e65f
Unverified
Commit
7c24e65f
authored
6 months ago
by
Hussain Abbas
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3466174
by hussainweb: Add contrib script
parent
2b6181e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
Issue #3466174 by hussainweb: Add contrib script
Pipeline
#245148
passed with warnings
6 months ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+27
-0
27 additions, 0 deletions
.gitignore
setup-dev.sh
+22
-0
22 additions, 0 deletions
setup-dev.sh
with
49 additions
and
0 deletions
.gitignore
0 → 100644
+
27
−
0
View file @
7c24e65f
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
This diff is collapsed.
Click to expand it.
setup-dev.sh
0 → 100755
+
22
−
0
View file @
7c24e65f
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment