diff .bash_aliases @ 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 2b3e169f8182
children 3d194431481b
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/