Support custom "Listening" pattern for startServerCommand
See original GitHub issueRunning lhci using a php local server does not seem to work: Lighthouse isn’t picking up the server output.
With the following .lighthouserc.json
:
{
"ci": {
"collect": {
"numberOfRuns": 3,
"startServerCommand": "php -S localhost:60000 ./server.php",
"url": [
"http://localhost:60000/nl/styleguide"
]
}
}
}
I get the following error:
$ lhci autorun
✅ .lighthouseci/ directory writable
✅ Configuration file found
✅ Chrome installation found
Healthcheck passed!
Started a web server with "php -S localhost:60000 ./server.php"...
WARNING: Timed out waiting for the server to start listening.
Ensure the server prints "listening" when it is ready.
Even though the output from the server contains the word “listening”:
$ php -S localhost:60000 ./server.php
PHP 7.3.7 Development Server started at Tue Dec 3 09:54:41 2019
Listening on http://localhost:60000
Document root is /Users/harmen/Sites/foo
Press Ctrl-C to quit.
Not sure who’s at fault here, if I can debug this further please let me know, I’d like to help fix this.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Continuous Performance Analysis with Lighthouse CI and ...
Lighthouse is a free and open-source tool for assessing your website's performance, accessibility, progressive web app metrics, SEO, ...
Read more >gemfire.properties and gfsecurity.properties - Apache Geode
Setting Definition Applies to (Server Loc...
async‑distribution‑timeout S
bind‑address S, L
jmx‑manager‑http‑port Deprecated. Use http‑service‑port instead. S, L
Read more >Performance tests in your CI Pipeline with Lighthouse CI
Custom Lighthouse CI Server with diff between reports ... Also, to know when the app is ready, a string pattern must be provided:...
Read more >Setting up the application serving environment - FTP Directory Listing
HTTP Tunnel transport channel custom properties . ... port-resolution mechanism does not support cross profiles on different host machines. v Example 1:.
Read more >@lhci/utils: Versions | Openbase
... closes #148; feat(cli): support custom listening pattern for startServerCommand (#140) (898843f), closes #140; feat(server): show version in UI sidebar ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @patrickhulce.
Working on this one 🙂
Sure if you want to! 😃
How about
startServerReadyPattern
? a string that getsnew RegExp(options.startServerReadyPattern, 'i')
'd and defaults to(listen|ready)