Lapinskas / roadrunner-ubiquity

RoadRunner and Ubiquity integration
MIT License
9 stars 3 forks source link

RoadRunner 2.0 configuration pb #28

Open jcheron opened 3 years ago

jcheron commented 3 years ago

Hi @Lapinskas The Techempower tests are broken since the upgrade to version 2. see https://tfb-status.techempower.com/results/6ba8043b-bfc2-47c1-8450-1eb0520ef3ba

The configuration seems to have changed, but I could not get a working result.

I tried to modify as follows, respecting the RoadRunner doc, without success:

server:
  command: "php-cgi ./.ubiquity/_roadrunner.php"
http:
  address:         "0.0.0.0:8080"
  pool:
    # Set numWorkers to 1 while debugging
    num_workers: ${NUM_WORKERS}
    maxJobs:    0

  # static file serving. remove this section to disable static file serving.
  static:
  # root directory for static file (http would not serve .php and .htaccess files).
    dir:   "."

    # list of extensions for forbid for serving.
    forbid: [".php", ".htaccess", ".yml"]

    always: [".ico", ".html", ".css", ".js"]

  headers:
    response:
      "Server": "RoadRunner"

When I launch the server, I get the following errors:

image

My modifications are on this repo: https://github.com/jcheron/FrameworkBenchmarks/tree/fix-rr-ubiquity

If you have an idea

jcheron commented 3 years ago

I will deactivate Ubiquity-roadrunner while waiting for an answer... It would have been better to test the correct working before going to version 2, besides updating the documentation, since the configuration has completely changed.