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

@@ -149,9 +149,9 @@ dokku apps:clone node-js-app io-js-app
Cloning node-js-app to io-js-app... done
```
This will copy all of your app's contents into a new app directory with the name of your choice and then rebuild the new version of the app and deploy it. All of your config variables, including database urls, will be preserved.
This will copy all of your app's contents into a new app directory with the name of your choice and then rebuild the new version of the app and deploy it. All of your config variables, including database urls, will be preserved. Custom domains and SSL certificates will not be copied to the new app.
> Warning: If you have exposed specific ports via docker-options, added generic domains, or performed anything that cannot be done against multiple applications, `apps:clone` may result in errors.
> Warning: If you have exposed specific ports via docker-options, or performed anything that cannot be done against multiple applications, `apps:clone` may result in errors.
By default, Dokku will deploy this new application, though you can skip the deploy by using the `--skip-deploy` flag: