question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom "Listening" pattern for startServerCommand

See original GitHub issue

Running 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:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jzabalacommented, Dec 5, 2019

Thanks @patrickhulce.

Working on this one 🙂

1reaction
patrickhulcecommented, Dec 5, 2019

Sure if you want to! 😃

How about startServerReadyPattern? a string that gets new RegExp(options.startServerReadyPattern, 'i')'d and defaults to (listen|ready)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found