Merge branch 'master' into apps_report_subcommand

This commit is contained in:
Jose Diaz-Gonzalez
2017-02-20 13:55:37 -07:00
committed by GitHub
103 changed files with 1088 additions and 486 deletions

View File

@@ -4,6 +4,7 @@
```
apps # List your apps
apps:clone <old-app> <new-app> # Clones an app
apps:create <app> # Create a new app
apps:destroy <app> # Permanently destroy an app
apps:rename <old-app> <new-app> # Rename an app
@@ -114,9 +115,33 @@ Renaming 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, delete your old app, then rebuild the new version of the app and deploy it. All of your config variables, including database urls, will be preserved.
### Cloning an existing app
> New as of 0.8.1
You can clone an existing app using the `apps:clone` command. Note that the application *must* have been deployed at least once, or the rename will not complete successfully:
```shell
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.
> 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.
By default, Dokku will deploy this new application, though you can skip the deploy by using the `--skip-deploy` flag:
```shell
dokku apps:clone --skip-deploy node-js-app io-js-app
```
### Displaying reports about an app
> New as of 0.7.2
> New as of 0.8.1
You can get a report about the deployed apps using the `apps:report` command:
@@ -157,7 +182,3 @@ You can pass flags which will output only the value of the specific information
```shell
dokku apps:report node-js-sample --git-sha
```
```
dbddc3f
```