From 831ca2df2258bf1db2cb03ab625cedec06e1fa2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 15 Jul 2020 15:23:38 +0200 Subject: [PATCH] feat: increase upload size locally and in review apps through custom php.ini (#6mq6d8) --- devops/docker-compose/docker-compose.yml | 1 + devops/scripts/custom-php.ini | 2 ++ docs/usage/folder-structure/root.md | 1 + 3 files changed, 4 insertions(+) create mode 100644 devops/scripts/custom-php.ini diff --git a/devops/docker-compose/docker-compose.yml b/devops/docker-compose/docker-compose.yml index 5134740..ed5b90c 100755 --- a/devops/docker-compose/docker-compose.yml +++ b/devops/docker-compose/docker-compose.yml @@ -48,6 +48,7 @@ services: - ../scripts:/scripts # Allow symlinking for composer "path" repositories - ../../packages:/var/www/html/wp-content/packages + - ../scripts/custom-php.ini:/usr/local/etc/php/conf.d/custom-php.ini restart: on-failure depends_on: - mysql diff --git a/devops/scripts/custom-php.ini b/devops/scripts/custom-php.ini new file mode 100644 index 0000000..5c45326 --- /dev/null +++ b/devops/scripts/custom-php.ini @@ -0,0 +1,2 @@ +upload_max_filesize = 64M +post_max_size = 64M \ No newline at end of file diff --git a/docs/usage/folder-structure/root.md b/docs/usage/folder-structure/root.md index 3b5063f..441f924 100755 --- a/docs/usage/folder-structure/root.md +++ b/docs/usage/folder-structure/root.md @@ -53,6 +53,7 @@ Don't give up too early, because it can take a while until you find your way in - 📁 `scripts` Used in Docker containers ([mounted](https://docs.docker.com/compose/compose-file/#volumes)) - 📄 `container-wordpress-cli-entrypoint.sh` Extended [entrypoint](https://docs.docker.com/compose/compose-file/#entrypoint) for `wordpress-cli` service - 📄 `container-wordpress-command.sh` [Command](https://docs.docker.com/compose/compose-file/#command) for `wordpress` service + - 📄 `custom-php.ini` Custom PHP [configuration file](https://www.php.net/manual/en/configuration.file.php) for `wordpress` service - 📄 `e2e-tests-autologin-plugin.php` Micro-plugin for automatic login via URL in WordPress for E2E tests - 📄 `lerna-ready-ci.sh` Make `lerna` work in GitLab CI environment - 📄 `purge-ci.sh` Purge Socker resources for E2E tests and Review Apps in CI/CD