mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #1818 from dokku/josegonzalez-pre-receive
Fix pre-receive git-hook
This commit is contained in:
@@ -27,6 +27,7 @@ case "$1" in
|
||||
dokku apps:destroy $OLD_APP --force
|
||||
sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/URLS"
|
||||
sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/VHOST"
|
||||
sed -i -e "s/git-hook $OLD_APP/git-hook $NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/hooks/pre-receive"
|
||||
dokku ps:rebuild $NEW_APP
|
||||
plugn trigger post-app-rename $OLD_APP $NEW_APP
|
||||
echo "Renaming $OLD_APP to $NEW_APP... done"
|
||||
|
||||
Reference in New Issue
Block a user