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
|`make list-backups`| List available backups |`make list-backups`|
130
161
131
162
**Backup files are stored in the `backups/` directory and are automatically compressed and timestamped.**
132
163
164
+
**Import tip:** Use `make db-import` to import any database file from your system. It will be copied to the backups directory and imported automatically.
165
+
133
166
### 🛠️ WordPress Management (WP-CLI)
134
167
135
168
| Command | Description | Example |
@@ -192,10 +225,19 @@ my-awesome-project/
192
225
Edit the `.env` file to customize your environment:
193
226
194
227
```bash
228
+
# PHP Version (latest WordPress with specific PHP version)
229
+
PHP_VERSION=8.4 # Options: 8.1, 8.2, 8.3, 8.4
230
+
231
+
# Upload and Memory Limits
232
+
PHP_UPLOAD_MAX_FILESIZE=128M # Maximum file upload size
233
+
PHP_POST_MAX_SIZE=128M # Maximum POST request size
234
+
PHP_MEMORY_LIMIT=512M # PHP memory limit
235
+
PMA_UPLOAD_LIMIT=128M # phpMyAdmin upload limit
236
+
195
237
# Ports (change if needed)
196
238
WP_PORT=8080 # WordPress port
197
-
PMA_PORT=8081 # phpMyAdmin port
198
-
MAILPIT_HTTP_PORT=8025 # Mailpit web interface
239
+
PMA_PORT=8081 # phpMyAdmin port
240
+
MAILPIT_HTTP_PORT=8025 # Mailpit web interface
199
241
200
242
# WordPress URL
201
243
WP_URL=http://localhost:8080
@@ -206,6 +248,11 @@ DB_USER=wordpress
206
248
DB_PASSWORD=wordpress_secure_[random]
207
249
```
208
250
251
+
After changing any `.env` values, restart the environment:
252
+
```bash
253
+
make restart
254
+
```
255
+
209
256
### PHP Configuration
210
257
211
258
PHP settings are configured for development in `.docker/php/php.ini`:
@@ -265,21 +312,24 @@ make logs
265
312
make restart
266
313
```
267
314
268
-
### Health Check
315
+
**After importing a database:**
316
+
```bash
317
+
# Fix URLs to match your local environment
318
+
make sr old=http://youroldsite.com new=http://localhost:8080
319
+
320
+
# If you get a blank page, check theme files exist
321
+
make wp cmd="theme list"
322
+
323
+
# Activate a different theme if needed
324
+
make wp cmd="theme activate twentytwentyfour"
325
+
```
269
326
270
-
Run the health check script to diagnose issues:
327
+
**Health Check:**
271
328
```bash
329
+
# Run comprehensive health check
272
330
./health-check.sh
273
331
```
274
332
275
-
### Development Setup
276
-
277
-
1. Fork the repository
278
-
2. Create a feature branch: `git checkout -b feature/amazing-feature`
279
-
3. Commit your changes: `git commit -m 'Add amazing feature'`
280
-
4. Push to the branch: `git push origin feature/amazing-feature`
281
-
5. Open a Pull Request
282
-
283
333
## 📋 Requirements
284
334
285
335
-**Docker**: 20.10 or higher
@@ -289,6 +339,16 @@ Run the health check script to diagnose issues:
289
339
-**Memory**: At least 2GB RAM available for Docker
290
340
-**Disk Space**: At least 2GB free space
291
341
342
+
## 🤝 Contributing
343
+
344
+
Contributions are welcome! To contribute:
345
+
346
+
1. Fork the repository
347
+
2. Create a feature branch: `git checkout -b feature/amazing-feature`
348
+
3. Commit your changes: `git commit -m 'Add amazing feature'`
349
+
4. Push to the branch: `git push origin feature/amazing-feature`
350
+
5. Open a Pull Request
351
+
292
352
## 📄 License
293
353
294
354
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
# Persistent wpcli container (no more "Creating 2/2" spam)
211
221
wpcli:
212
-
image: wordpress:cli-php8.2
222
+
image: wordpress:cli-php8.4
213
223
working_dir: /var/www/html
214
224
command: tail -f /dev/null
215
225
environment:
@@ -266,7 +276,7 @@ DOCKER_EOF
266
276
cat > Makefile << 'MAKEFILE_EOF'
267
277
# WordPress Development Environment
268
278
.DEFAULT_GOAL := help
269
-
.PHONY: help up down install clean shell db-shell logs plugin theme backup restore list-backups fix-permissions wait-db wp sr cron-run prune-backups phpinfo test health restart plugin-repo plugin-clone plugin-list theme-repo theme-clone
279
+
.PHONY: help up down install clean shell db-shell logs plugin theme backup restore db-import list-backups fix-permissions wait-db wp sr cron-run prune-backups phpinfo test health restart plugin-repo plugin-clone plugin-list theme-repo theme-clone
270
280
271
281
# Stop "make[1]: on entre/quitte le répertoire ..." messages
0 commit comments