changeset 238:bf173fdcf76e

Updating 'hgs' to work without localhost (better for proxying)
author Steve Huston <huston@astro.princeton.edu>
date Mon, 30 Jan 2023 14:27:38 -0500
parents adb977adb9d7
children 01056f1c3c9d
files .bash_aliases
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.bash_aliases	Fri Nov 11 10:52:53 2022 -0500
+++ b/.bash_aliases	Mon Jan 30 14:27:38 2023 -0500
@@ -245,7 +245,7 @@
       P=`cat $ROOT/.hg/hgserve-PID`
       URL=`lsof -n -p $P | grep LISTEN | awk '{print $9}'`
     else
-      URL=`hg serve -a localhost -d -p 0 --pid-file $ROOT/.hg/hgserve-PID | sed 's#.*bound to \(.*\))#\1#'`
+      URL=`hg serve -d -p 0 --pid-file $ROOT/.hg/hgserve-PID | sed 's#.*at http://\(.*\)/ (bound.*#\1#'`
     fi
     if [ -z "$DARWIN" ] ; then
       echo hg serve on http://$URL/