Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 760 Bytes

developer.md

File metadata and controls

29 lines (21 loc) · 760 Bytes

Developer Mode

RoadRunner uses PHP scripts in daemon mode, this means that you have to reload server every time you change your codebase.

If you use any modern IDE you can achieve that by adding file watcher which automatically invokes command rr http:reset.

In Docker

You can reset rr process in docker by connecting to it using local rr client.

rpc:
  listen: tcp://:6001

Make sure to forward/expose port 6001.

Then run rr http:reset locally on file change.

Another option is to use maxJobs: 1 and to make rr destroy process after each request.

Debug Mode

Note, it's much easier to debug the application using the following configuration:

http:
  workers:
    pool:
      numWorkers: 1
      maxJobs:    1