commit 9d10676d8650368b3442f6287d106730ab2b3d57
Author: @RandyMcMillan <[email protected]>
Date: Sun Mar 31 13:14:17 2024 -0400
web/gnostr-web-deploy:-p --port arg
diff --git a/web/gnostr-web-deploy b/web/gnostr-web-deploy
old mode 100644
new mode 100755
index cb1138a47..0fc0c5295
--- a/web/gnostr-web-deploy
+++ b/web/gnostr-web-deploy
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+PORT=80 && export $PORT
if [[ $1 = "-h" ]] || [[ $1 = "--help" ]]; then
@@ -12,7 +13,12 @@ if [[ $1 = "-v" ]] || [[ $1 = "--version" ]]; then
exit;
fi
+if [[ $1 = "-p" ]] || [[ $1 = "--port" ]]; then
+ PORT=$2 && export PORT
-gnostr-web --http-address=0.0.0.0 --http-port=80 --deploy-path=/web --docroot=. & \
- $(shell which open) http://0.0.0.0:80¬
+fi
+
+
+gnostr-web --http-address=0.0.0.0 --http-port=$PORT --deploy-path=/web --docroot=. & \
+ $(shell which open) http://0.0.0.0:$PORT