Skip to content

Commit e697d10

Browse files
committed
Update
1 parent 6962469 commit e697d10

File tree

6 files changed

+7367
-1
lines changed

6 files changed

+7367
-1
lines changed

.ddev/config.yaml

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
name: DrupalPod
2+
type: drupal9
3+
docroot: web
4+
php_version: "8.0"
5+
webserver_type: nginx-fpm
6+
router_http_port: "80"
7+
router_https_port: "443"
8+
xdebug_enabled: false
9+
additional_hostnames: []
10+
additional_fqdns: []
11+
database:
12+
type: mariadb
13+
version: "10.3"
14+
nfs_mount_enabled: false
15+
mutagen_enabled: false
16+
use_dns_when_possible: true
17+
composer_version: "2"
18+
web_environment: []
19+
nodejs_version: "16"
20+
21+
# Key features of ddev's config.yaml:
22+
23+
# name: <projectname> # Name of the project, automatically provides
24+
# http://projectname.ddev.site and https://projectname.ddev.site
25+
26+
# type: <projecttype> # drupal6/7/8, backdrop, typo3, wordpress, php
27+
28+
# docroot: <relative_path> # Relative path to the directory containing index.php.
29+
30+
# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"
31+
32+
# You can explicitly specify the webimage but this
33+
# is not recommended, as the images are often closely tied to ddev's' behavior,
34+
# so this can break upgrades.
35+
36+
# webimage: <docker_image> # nginx/php docker image.
37+
38+
# database:
39+
# type: <dbtype> # mysql, mariadb
40+
# version: <version> # database version, like "10.3" or "8.0"
41+
# Note that mariadb_version or mysql_version from v1.18 and earlier
42+
# will automatically be converted to this notation with just a "ddev config --auto"
43+
44+
# router_http_port: <port> # Port to be used for http (defaults to port 80)
45+
# router_https_port: <port> # Port for https (defaults to 443)
46+
47+
# xdebug_enabled: false # Set to true to enable xdebug and "ddev start" or "ddev restart"
48+
# Note that for most people the commands
49+
# "ddev xdebug" to enable xdebug and "ddev xdebug off" to disable it work better,
50+
# as leaving xdebug enabled all the time is a big performance hit.
51+
52+
# xhprof_enabled: false # Set to true to enable xhprof and "ddev start" or "ddev restart"
53+
# Note that for most people the commands
54+
# "ddev xhprof" to enable xhprof and "ddev xhprof off" to disable it work better,
55+
# as leaving xhprof enabled all the time is a big performance hit.
56+
57+
# webserver_type: nginx-fpm # or apache-fpm
58+
59+
# timezone: Europe/Berlin
60+
# This is the timezone used in the containers and by PHP;
61+
# it can be set to any valid timezone,
62+
# see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
63+
# For example Europe/Dublin or MST7MDT
64+
65+
# composer_root: <relative_path>
66+
# Relative path to the composer root directory from the project root. This is
67+
# the directory which contains the composer.json and where all Composer related
68+
# commands are executed.
69+
70+
# composer_version: "2"
71+
# if composer_version:"2" it will use the most recent composer v2
72+
# It can also be set to "1", to get most recent composer v1
73+
# or "" for the default v2 created at release time.
74+
# It can be set to any existing specific composer version.
75+
# After first project 'ddev start' this will not be updated until it changes
76+
77+
# nodejs_version: "16"
78+
# change from the default system Node.js version to another supported version, like 12, 14, 17, 18.
79+
# Note that you can use 'ddev nvm' or nvm inside the web container to provide nearly any
80+
# Node.js version, including v6, etc.
81+
82+
# additional_hostnames:
83+
# - somename
84+
# - someothername
85+
# would provide http and https URLs for "somename.ddev.site"
86+
# and "someothername.ddev.site".
87+
88+
# additional_fqdns:
89+
# - example.com
90+
# - sub1.example.com
91+
# would provide http and https URLs for "example.com" and "sub1.example.com"
92+
# Please take care with this because it can cause great confusion.
93+
94+
# upload_dir: custom/upload/dir
95+
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir
96+
97+
# working_dir:
98+
# web: /var/www/html
99+
# db: /home
100+
# would set the default working directory for the web and db services.
101+
# These values specify the destination directory for ddev ssh and the
102+
# directory in which commands passed into ddev exec are run.
103+
104+
# omit_containers: [db, dba, ddev-ssh-agent]
105+
# Currently only these containers are supported. Some containers can also be
106+
# omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit
107+
# the "db" container, several standard features of ddev that access the
108+
# database container will be unusable. In the global configuration it is also
109+
# possible to omit ddev-router, but not here.
110+
111+
# nfs_mount_enabled: false
112+
# Great performance improvement but requires host configuration first.
113+
# See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container
114+
115+
# mutagen_enabled: false
116+
# Experimental performance improvement using mutagen asynchronous updates.
117+
# See https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen
118+
119+
# fail_on_hook_fail: False
120+
# Decide whether 'ddev start' should be interrupted by a failing hook
121+
122+
# host_https_port: "59002"
123+
# The host port binding for https can be explicitly specified. It is
124+
# dynamic unless otherwise specified.
125+
# This is not used by most people, most people use the *router* instead
126+
# of the localhost port.
127+
128+
# host_webserver_port: "59001"
129+
# The host port binding for the ddev-webserver can be explicitly specified. It is
130+
# dynamic unless otherwise specified.
131+
# This is not used by most people, most people use the *router* instead
132+
# of the localhost port.
133+
134+
# host_db_port: "59002"
135+
# The host port binding for the ddev-dbserver can be explicitly specified. It is dynamic
136+
# unless explicitly specified.
137+
138+
# phpmyadmin_port: "8036"
139+
# phpmyadmin_https_port: "8037"
140+
# The PHPMyAdmin ports can be changed from the default 8036 and 8037
141+
142+
# host_phpmyadmin_port: "8036"
143+
# The phpmyadmin (dba) port is not normally bound on the host at all, instead being routed
144+
# through ddev-router, but it can be specified and bound.
145+
146+
# mailhog_port: "8025"
147+
# mailhog_https_port: "8026"
148+
# The MailHog ports can be changed from the default 8025 and 8026
149+
150+
# host_mailhog_port: "8025"
151+
# The mailhog port is not normally bound on the host at all, instead being routed
152+
# through ddev-router, but it can be bound directly to localhost if specified here.
153+
154+
# webimage_extra_packages: [php7.4-tidy, php-bcmath]
155+
# Extra Debian packages that are needed in the webimage can be added here
156+
157+
# dbimage_extra_packages: [telnet,netcat]
158+
# Extra Debian packages that are needed in the dbimage can be added here
159+
160+
# use_dns_when_possible: true
161+
# If the host has internet access and the domain configured can
162+
# successfully be looked up, DNS will be used for hostname resolution
163+
# instead of editing /etc/hosts
164+
# Defaults to true
165+
166+
# project_tld: ddev.site
167+
# The top-level domain used for project URLs
168+
# The default "ddev.site" allows DNS lookup via a wildcard
169+
# If you prefer you can change this to "ddev.local" to preserve
170+
# pre-v1.9 behavior.
171+
172+
# ngrok_args: --subdomain mysite --auth username:pass
173+
# Provide extra flags to the "ngrok http" command, see
174+
# https://ngrok.com/docs#http or run "ngrok http -h"
175+
176+
# disable_settings_management: false
177+
# If true, ddev will not create CMS-specific settings files like
178+
# Drupal's settings.php/settings.ddev.php or TYPO3's AdditionalConfiguration.php
179+
# In this case the user must provide all such settings.
180+
181+
# You can inject environment variables into the web container with:
182+
# web_environment:
183+
# - SOMEENV=somevalue
184+
# - SOMEOTHERENV=someothervalue
185+
186+
# no_project_mount: false
187+
# (Experimental) If true, ddev will not mount the project into the web container;
188+
# the user is responsible for mounting it manually or via a script.
189+
# This is to enable experimentation with alternate file mounting strategies.
190+
# For advanced users only!
191+
192+
# bind_all_interfaces: false
193+
# If true, host ports will be bound on all network interfaces,
194+
# not just the localhost interface. This means that ports
195+
# will be available on the local network if the host firewall
196+
# allows it.
197+
198+
# Many ddev commands can be extended to run tasks before or after the
199+
# ddev command is executed, for example "post-start", "post-import-db",
200+
# "pre-composer", "post-composer"
201+
# See https://ddev.readthedocs.io/en/stable/users/extending-commands/ for more
202+
# information on the commands that can be extended and the tasks you can define
203+
# for them. Example:
204+
#hooks:
205+
# post-import-db:
206+
# - exec: drush cr
207+
# - exec: drush updb

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Lines to add to your project's .gitignore file.
2+
# Files from the Drupal scaffold for composer.
3+
/.editorconfig
4+
/.gitattributes
5+
vendor/
6+
web/core/
7+
web/sites/default/files/
8+
web/.csslintrc
9+
web/.eslintignore
10+
web/.eslintrc.json
11+
web/.ht.router.php
12+
web/.htaccess
13+
web/example.gitignore
14+
web/index.php
15+
web/INSTALL.txt
16+
web/README.txt
17+
web/robots.txt
18+
web/update.php
19+
web/web.config
20+
web/README.md
21+
web/autoload.php
22+
web/sites/README.txt
23+
web/sites/development.services.yml
24+
web/sites/example.settings.local.php
25+
web/sites/example.sites.php
26+
web/sites/default/default.services.yml
27+
web/sites/default/default.settings.php
28+
web/modules/README.txt
29+
web/profiles/README.txt
30+
web/themes/README.txt

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tasks:
88
ddev config global --instrumentation-opt-in=true
99
init: |
1010
ddev debug download-images
11-
ddev composer create drupal/recommended-project
11+
ddev composer install
1212
ddev drush si demo_umami -y
1313
command: |
1414
echo y | ddev start

composer.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"name": "drupal/recommended-project",
3+
"description": "Project template for Drupal 9 projects with a relocated document root",
4+
"type": "project",
5+
"license": "GPL-2.0-or-later",
6+
"homepage": "https://www.drupal.org/project/drupal",
7+
"support": {
8+
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
9+
"chat": "https://www.drupal.org/node/314178"
10+
},
11+
"repositories": [
12+
{
13+
"type": "composer",
14+
"url": "https://packages.drupal.org/8"
15+
}
16+
],
17+
"require": {
18+
"composer/installers": "^1.9",
19+
"drupal/core-composer-scaffold": "^9.3",
20+
"drupal/core-project-message": "^9.3",
21+
"drupal/core-recommended": "^9.3",
22+
"drush/drush": "^11.0"
23+
},
24+
"conflict": {
25+
"drupal/drupal": "*"
26+
},
27+
"minimum-stability": "stable",
28+
"prefer-stable": true,
29+
"config": {
30+
"sort-packages": true,
31+
"allow-plugins": {
32+
"composer/installers": true,
33+
"drupal/core-composer-scaffold": true,
34+
"drupal/core-project-message": true
35+
}
36+
},
37+
"extra": {
38+
"drupal-scaffold": {
39+
"locations": {
40+
"web-root": "web/"
41+
}
42+
},
43+
"installer-paths": {
44+
"web/core": [
45+
"type:drupal-core"
46+
],
47+
"web/libraries/{$name}": [
48+
"type:drupal-library"
49+
],
50+
"web/modules/contrib/{$name}": [
51+
"type:drupal-module"
52+
],
53+
"web/profiles/contrib/{$name}": [
54+
"type:drupal-profile"
55+
],
56+
"web/themes/contrib/{$name}": [
57+
"type:drupal-theme"
58+
],
59+
"drush/Commands/contrib/{$name}": [
60+
"type:drupal-drush"
61+
],
62+
"web/modules/custom/{$name}": [
63+
"type:drupal-custom-module"
64+
],
65+
"web/profiles/custom/{$name}": [
66+
"type:drupal-custom-profile"
67+
],
68+
"web/themes/custom/{$name}": [
69+
"type:drupal-custom-theme"
70+
]
71+
},
72+
"drupal-core-project-message": {
73+
"include-keys": [
74+
"homepage",
75+
"support"
76+
],
77+
"post-create-project-cmd-message": [
78+
"<bg=blue;fg=white> </>",
79+
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
80+
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
81+
"<bg=blue;fg=white> </>",
82+
"",
83+
"<bg=yellow;fg=black>Next steps</>:",
84+
" * Install the site: https://www.drupal.org/docs/8/install",
85+
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
86+
" * Get support: https://www.drupal.org/support",
87+
" * Get involved with the Drupal community:",
88+
" https://www.drupal.org/getting-involved",
89+
" * Remove the plugin that prints this message:",
90+
" composer remove drupal/core-project-message"
91+
]
92+
}
93+
}
94+
}

0 commit comments

Comments
 (0)