aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-12-02 20:50:38 -0300
committerEuAndreh <eu@euandre.org>2022-12-02 20:51:56 -0300
commitb8ece25299c900f2e23c71b0bcc74d00698d20bc (patch)
treeb4bbf8c2f756d56dde6f7d9312f66b1172b5af6a /bin
parentbin/free-port: Add new working utility (diff)
downloaddotfiles-b8ece25299c900f2e23c71b0bcc74d00698d20bc.tar.gz
dotfiles-b8ece25299c900f2e23c71b0bcc74d00698d20bc.tar.xz
bin/serve: Do not wait for the browser before start listening
Diffstat (limited to 'bin')
-rwxr-xr-xbin/serve3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/serve b/bin/serve
index 4a06c50..e2a1009 100755
--- a/bin/serve
+++ b/bin/serve
@@ -74,5 +74,6 @@ while getopts 'd:p:h' flag; do
esac
done
-open "http://localhost:$PORT"
+open "http://localhost:$PORT" &
python3 -m http.server -d "$DIRECTORY" "$PORT"
+wait