mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
only override url if vhost file exists
This commit is contained in:
1
dokku
1
dokku
@@ -34,7 +34,6 @@ case "$1" in
|
||||
port=$(docker port $id 5000)
|
||||
echo $port > "$HOME/$APP/PORT"
|
||||
echo "$(< "$HOME/HOSTNAME"):$port" > "$HOME/$APP/ADDRESS"
|
||||
|
||||
else
|
||||
# Regular deploy
|
||||
oldid=$(< "$HOME/$APP/CONTAINER")
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
set -e; case "$1" in
|
||||
|
||||
url)
|
||||
echo "http://$(< "/home/git/$2/VHOST")"
|
||||
if [[ -f "/home/git/$2/VHOST" ]]; then
|
||||
echo "http://$(< "/home/git/$2/VHOST")"
|
||||
else
|
||||
cat
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
KEYNAME="$1"
|
||||
indent() { sed "s/^/ /"; }
|
||||
echo "-----> Booting EC2 instance..."
|
||||
|
||||
Reference in New Issue
Block a user