feat: do not clone URLS and VHOST files to new apps

This follows the heroku pattern of ensuring applications are "freshly" created, routing-wise.

Closes #2740
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-28 17:07:26 -05:00
parent 51dea4a220
commit 81542ef089
5 changed files with 33 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
certs_post_app_clone_setup() {
declare desc="removes cert file when setting up a clone"
declare OLD_APP="$1" NEW_APP="$2"
local APP_DIR="$DOKKU_ROOT/$NEW_APP"
rm -rf "$APP_DIR/tls"
}
certs_post_app_clone_setup "$@"