-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ofer Shaal
committed
May 1, 2024
1 parent
c66291d
commit 3f06737
Showing
20 changed files
with
475 additions
and
133 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 |
---|---|---|
|
@@ -15,3 +15,5 @@ src/**/package-lock.json | |
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
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
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,10 @@ | ||
#!/usr/bin/env bash | ||
set -eu -o pipefail | ||
|
||
# Set a default setup (when project type is not specified) | ||
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 |
Oops, something went wrong.