Skip to content

Commit

Permalink
Merge pull request #60 from Xerkus/feature/serve-timeout
Browse files Browse the repository at this point in the history
Disable process timeout for composer serve
  • Loading branch information
Xerkus authored Mar 9, 2023
2 parents 4e1f7ce + 240d1bd commit dda6f55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Once installed, you can test it out immediately using PHP's built-in web server:
$ cd path/to/install
$ php -S 0.0.0.0:8080 -t public
# OR use the composer alias:
$ composer run --timeout 0 serve
$ composer serve
```

This will start the cli-server on port 8080, and bind it to all network
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@
],
"post-install-cmd": "@clear-config-cache",
"post-update-cmd": "@clear-config-cache",
"serve": "php -S 0.0.0.0:8080 -t public",
"serve": [
"Composer\\Config::disableProcessTimeout",
"php -S 0.0.0.0:8080 -t public"
],
"test": "vendor/bin/phpunit",
"static-analysis": "vendor/bin/psalm --shepherd --stats"
},
Expand Down

0 comments on commit dda6f55

Please sign in to comment.