-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: support drupal 11 * fix: improve code * fix: default installation * fix: update mariadb version to 10.6 * fix: update ddev-gitpod image (latest ddev version) * fix: lazygit binaries * fix: remove legacy settings from gitpod.yml * fix: use DP_CORE_VERSION when there's no issue_fork * fix: reorganize scripts order * Update .gitpod/drupal/drupalpod-setup/ddev_setup.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d3c2d4a
commit e58c519
Showing
16 changed files
with
328 additions
and
152 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ src/**/out/ | |
src/**/*.vsix | ||
src/**/.vscode-test/ | ||
drush/ | ||
.ddev/config.gitpod.yaml |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -eu -o pipefail | ||
|
||
# Remove site that was installed before (for debugging) | ||
rm -rf "${GITPOD_REPO_ROOT}"/web | ||
rm -rf "${GITPOD_REPO_ROOT}"/vendor | ||
rm -f "${GITPOD_REPO_ROOT}"/composer.json | ||
rm -f "${GITPOD_REPO_ROOT}"/composer.lock |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -eu -o pipefail | ||
|
||
# set PHP version, based on https://www.drupal.org/docs/getting-started/system-requirements/php-requirements#versions | ||
major_version=$(echo "$DP_CORE_VERSION" | cut -d '.' -f 1) | ||
minor_version=$(echo "$DP_CORE_VERSION" | cut -d '.' -f 2) | ||
|
||
# Before Drupal 10.2, we should use php 8.2, otherwise use php 8.3 | ||
if (( major_version < 10 )) || { (( major_version == 10 )) && (( minor_version < 2 )); }; then | ||
php_version="8.2" | ||
else | ||
php_version="8.3" | ||
fi | ||
|
||
cat <<CONFIGEND > "${GITPOD_REPO_ROOT}"/.ddev/config.gitpod.yaml | ||
#ddev-gitpod-generated | ||
php_version: "$php_version" | ||
CONFIGEND | ||
|
||
time ddev start |
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
22 changes: 0 additions & 22 deletions
22
.gitpod/drupal/drupalpod-setup/drupal_version_specifics.sh
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Set a default setup if project type wasn't specified | ||
if [ -z "$DP_PROJECT_TYPE" ]; then | ||
export DP_INSTALL_PROFILE='demo_umami' | ||
export DP_PROJECT_TYPE='project_core' | ||
export DP_PROJECT_NAME="drupal" | ||
export DP_CORE_VERSION='10.2.5' | ||
export DP_EXTRA_DEVEL=1 | ||
export DP_EXTRA_ADMIN_TOOLBAR=1 | ||
fi |
Oops, something went wrong.