summaryrefslogtreecommitdiff
path: root/docs/php/developer.md
diff options
context:
space:
mode:
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
+```