ip vs domain

This commit is contained in:
Jeff Lindsay
2013-06-10 02:13:47 -07:00
parent 8717d6355d
commit d66abeb487
3 changed files with 7 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ if [[ ! -f "$HOME/$APP/PORT" ]]; then
$HOME/nginx-app-conf $APP $PORT $HOSTNAME > $HOME/$APP/nginx.conf
nc -U $HOME/reload-nginx
else
HOSTNAME="$(hostname -i | cut -d' ' -f3):$PORT"
HOSTNAME="$(< "$HOME/HOSTNAME"):$PORT"
fi
echo $HOSTNAME > "$HOME/$APP/HOSTNAME"
else