Files
dokku/plugins/nginx-vhosts/commands
Jose Diaz-Gonzalez a308ff6546 heroku-like configuration handling for dokku
refs #55
superscedes #188
2013-10-17 17:47:19 -04:00

19 lines
293 B
Bash
Executable File

#!/bin/bash
set -e; case "$1" in
url)
if [[ -f "/home/git/$2/VHOST" ]]; then
echo "http://$(< "/home/git/$2/VHOST")"
else
cat
fi
;;
help) cat && cat<<EOF
url <app> Show the URL for an application
EOF
;;
esac
cat