summaryrefslogtreecommitdiff
path: root/docs/php/developer.md
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-10 15:21:06 +0300
committerValery Piashchynski <[email protected]>2021-09-10 15:21:06 +0300
commit8b70fb48b2b0a9451d9b82a17ac2f4cd8a1f561e (patch)
tree852cef5775c326f62dac96e8b1f80ef9b75962c2 /docs/php/developer.md
parent183d0ac682b57f285c9193492e50310046422184 (diff)
Add docs folder
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'docs/php/developer.md')
-rw-r--r--docs/php/developer.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/php/developer.md b/docs/php/developer.md
new file mode 100644
index 00000000..6bb7a340
--- /dev/null
+++ b/docs/php/developer.md
@@ -0,0 +1,26 @@
+# Developer Mode
+RoadRunner uses PHP scripts in daemon mode, this means that you have to reload a 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 reset` for the plugins specified in the `reload` config.
+
+> Or use [auto-resetter](/beep-beep/reload.md).
+
+## In Docker
+You can reset rr process in docker by connecting to it using local rr client.
+
+```yaml
+rpc:
+ listen: tcp://:6001
+```
+
+> Make sure to forward/expose port 6001.
+
+Then run `rr reset` locally on file change.
+
+## Debug Mode
+To run workers in debug mode (similar to how PHP-FPM operates):
+
+```yaml
+http:
+ pool.debug: true
+```