Fix issue where VHOST was not properly being set

The URL file is being rewritten on every deploy by `dokku deploy` and thus that file was incorrect. Instead, we just reuse the old logic from the nginx-vhosts plugin to handle creation of the VHOST file
This commit is contained in:
Jose Diaz-Gonzalez committed 2014-12-11 02:09:54 -05:00
1 parent 4955f9c600
commit 9111902542
1 file changed
-4
-4
View File
@@ -19,9 +19,6 @@ case "$1" in
if [[ ! -f $VHOST_PATH ]]; then if [[ ! -f $VHOST_PATH ]]; then
echo "-----> Creating new $VHOST_PATH..." echo "-----> Creating new $VHOST_PATH..."
if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then
cat "$DOKKU_ROOT/$APP/URL" > $VHOST_PATH
else
VHOST=$(< "$DOKKU_ROOT/VHOST") VHOST=$(< "$DOKKU_ROOT/VHOST")
SUBDOMAIN=${APP/%\.${VHOST}/} SUBDOMAIN=${APP/%\.${VHOST}/}
hostname=$(: | pluginhook nginx-hostname $APP $SUBDOMAIN $VHOST) hostname=$(: | pluginhook nginx-hostname $APP $SUBDOMAIN $VHOST)
@@ -35,7 +32,6 @@ case "$1" in
echo $hostname > $VHOST_PATH echo $hostname > $VHOST_PATH
fi fi
fi
;; ;;
domains:add) domains:add)