fix: pass PHP upload limits via -d flags in justfile serve recipe

php -S (built-in dev server) ignores .htaccess and .user.ini entirely.
The POST Content-Length limit was still 8M from /etc/php/php.ini.
Pass upload_max_filesize=512M, post_max_size=520M, memory_limit=256M,
max_execution_time=300, max_input_time=300 directly on the CLI.
This commit is contained in:
Pontoporeia
2026-04-30 13:26:08 +02:00
parent 6a37d21f3f
commit 19784090a3
3 changed files with 18 additions and 3 deletions

View File

@@ -13,7 +13,14 @@ setup:
[group('dev')]
serve: migrate
@php -S 127.0.0.1:8000 -t app/public/ app/router.php 2>&1 | stdbuf -oL grep -Ev '(Accepted|Closing|live-reload\.php|assets/|favicon)' || true
@php \
-d upload_max_filesize=512M \
-d post_max_size=520M \
-d memory_limit=256M \
-d max_execution_time=300 \
-d max_input_time=300 \
-S 127.0.0.1:8000 -t app/public/ app/router.php 2>&1 \
| stdbuf -oL grep -Ev '(Accepted|Closing|live-reload\.php|assets/|favicon)' || true
[group('dev')]
stop: