summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-03-14 12:54:01 -0300
committerEuAndreh <eu@euandre.org>2024-03-14 12:54:34 -0300
commit00801c24726fd44986a64dbe1af06830b2a14a7f (patch)
tree4a140da29436cebecb104287e252a28019278a85
parentsrc/web.mjs: Add trailing newline to body (diff)
downloadpapod-00801c24726fd44986a64dbe1af06830b2a14a7f.tar.gz
papod-00801c24726fd44986a64dbe1af06830b2a14a7f.tar.xz
Makefile: Add "run-binder" to expose lighttpd's unix socket to a TCP port
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 31d310e..8c7ce1a 100644
--- a/Makefile
+++ b/Makefile
@@ -141,9 +141,15 @@ run-web: all
run-proxy: all
lighttpd -Df tests/lighttpd.conf
+run-binder: all
+ socat tcp-listen:1234,fork,reuseaddr unix:lighttpd.socket
+
## Run the web and IRC server locally.
run: all
- $(MAKE) run-ircd & $(MAKE) run-web & $(MAKE) run-proxy & wait
+ for c in ircd web proxy binder; do \
+ $(MAKE) run-$$c & \
+ done; \
+ wait
## Show this help.