Enhance serve recipe to automatically open the browser

- use xdg-open firefox
- keep serve recipe in foreground
This commit is contained in:
Pontoporeia
2026-05-04 14:46:05 +02:00
parent 8a38708fc8
commit d6e30ec9cd
3 changed files with 5 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ setup:
[group('dev')]
serve: migrate
@xdg-open http://127.0.0.1:8000 &
@php \
-d upload_max_filesize=512M \
-d post_max_size=520M \
@@ -17,7 +18,7 @@ serve: migrate
-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
| stdbuf -oL grep -Ev '(Accepted|Closing|live-reload\.php|assets/|favicon)'
[group('dev')]
stop: