mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
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:
9
justfile
9
justfile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user