Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 1ef053e

Browse files
committed
Migrate to v2 architecture
See studiometa/create-wordpress-project#106
1 parent 88b2cfc commit 1ef053e

File tree

133 files changed

+36156
-1714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+36156
-1714
lines changed

.ddev/config.yaml

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

.env.example

+13-19
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
11
APP_HOST=
22
APP_ENV=local|preprod|production
3-
APP_DOCROOT=web/
4-
APP_CORE=
53
APP_DEBUG=true|false
64
APP_SSL=true|false
75

8-
# For local development, in order for browserSync to
9-
# work correctly with SSL, it needs to know where the
10-
# SSL certifcate files are stored.
11-
# You can generate local and valid SSL certifcate with
12-
# [mkcert](https://github.com/FiloSottile/mkcert) and
13-
# the following shell command:
14-
#
15-
# ```bash
16-
# mkcert local.studiometa.fr studiometa.fr localhost 127.0.0.1
17-
# ```
18-
APP_SSL_CERT='/path/to/cert'
19-
APP_SSL_KEY='/path/to/key'
20-
21-
DB_HOST=localhost
22-
DB_DATABASE=database_name
23-
DB_USERNAME=root
24-
DB_PASSWORD=root
6+
DB_HOST=db
7+
DB_DATABASE=db
8+
DB_USERNAME=db
9+
DB_PASSWORD=db
2510
DB_PREFIX=wp_
2611

12+
DISABLE_PLUGINS_LOCAL=test/test.php
13+
DISABLE_PLUGINS_PREPROD=test/test.php
14+
DISABLE_PLUGINS_PRODUCTION=test/test.php
15+
2716
AUTH_KEY=''
2817
SECURE_AUTH_KEY=''
2918
LOGGED_IN_KEY=''
@@ -32,3 +21,8 @@ AUTH_SALT=''
3221
SECURE_AUTH_SALT=''
3322
LOGGED_IN_SALT=''
3423
NONCE_SALT=''
24+
25+
# WP Rocket config
26+
WP_ROCKET_EMAIL=''
27+
WP_ROCKET_KEY=''
28+
WP_CACHE=false

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: '@studiometa/eslint-config',
3+
};

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/web/wp-content/themes/studiometa/dist/** -text -diff

0 commit comments

Comments
 (0)