Files
dokku/plugins/nginx-vhosts/commands
Alexander 774b1f3c45 Merge pull request #180 from asm89/add-run-cmd
Add dokku run command to run commands in the app env
2013-08-21 14:47:51 -07:00

19 lines
261 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