You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
Download the latest version from this project's [releases][releases]. You can
@@ -107,65 +121,16 @@ At a glance, with WP CC Plugin you can:
107
121
license required (Gutenberg License Blocks)
108
122
109
123
110
-
## Contributing
111
-
112
-
Contributions will be very appreciated. See
113
-
[`CONTRIBUTING.md`](CONTRIBUTING.md).
114
-
115
-
### Using a localized Docker Setup
116
-
117
-
A local `docker-compose.yml` file is included in the `./dev/` directory. It includes an Apache webserver, the latest WordPress installation files, and a mySQL db server utilizing MariaDB. We have also included a copy of wp-cli for ease of developement and testing.
118
-
119
-
It is modelled after the official example, given here by WordPress: https://hub.docker.com/_/wordpress/
120
-
121
-
To run a local development environment for building and testing contributions you can run the following pattern from the root directory of this repository after cloning it.
Be sure to substitute `[command]` for a valid docker compose command, such as:
126
-
127
-
`docker compose -f ./dev/docker-compose.yml up` to build and start containers
128
-
129
-
OR
130
-
131
-
`docker compose -f ./dev/docker-compose.yml down` to stop containers
132
-
133
-
The first time the build process is run via `docker compose -f ./dev/docker-compose.yml up`, docker will create two directories within your local repository clone:
124
+
## Contributing and development
134
125
135
-
-`./dev/db` where the database and relevant config will be stored
136
-
-`./dev/wordpress` where the WordPress files will be stored
126
+
**See [`development.md`](development.md).**
137
127
138
-
It will then mount this plugin's root directory into the `/wp-content/plugins/` directory of the WordPress installation. Edits made to your local plugin clone will reflect within the build.
139
128
140
-
You can then navigate to `http://localhost:8080/` and proceed with a manual WordPress installation. After the initial installation the WordPress install will persisist between docker sessions.
141
-
142
-
If you need to reset the WordPress install to a "clean slate" you can simply delete the `db` and `wordpress` directories respectively, and then run `docker compose -f ./dev/docker-compose.yml up` again to initialize a clean install build.
143
-
144
-
#### WP-CLI
145
-
146
-
To access `wp-cli`, you should have:
147
-
148
-
- Started the docker container
149
-
- Completed wordpress setup from dashboard
150
-
151
-
You can run wp-cli commands like this:
152
-
153
-
```
154
-
docker compose -f ./dev/docker-compose.yml exec wpcli wp core version
155
-
```
156
-
The above command will display the wp core version.
157
-
158
-
You can also use the container's shell to execute wp-cli commands:
0 commit comments