Skip to content

Commit 074827c

Browse files
refactor: Unify running a dev server (for automated testing)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 82f23fb commit 074827c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"platform": {
77
"php": "8.0"
88
},
9+
"process-timeout": 0,
910
"allow-plugins": {
1011
"bamarni/composer-bin-plugin": true
1112
}
@@ -60,6 +61,7 @@
6061
"psalm": "psalm --no-cache --threads=$(nproc)",
6162
"psalm:ci": "psalm --no-cache --threads=1",
6263
"psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
64+
"serve": "PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./",
6365
"test": "phpunit --configuration tests/phpunit-autotest.xml",
6466
"test:db": "@composer run test -- --group DB,SLOWDB",
6567
"test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml"

0 commit comments

Comments
 (0)