Adds dokku apps:rename function, closes #1440.

Adds unit test for new apps:rename function.

Add example in the docs for new apps:rename function.

Add apps:rename command to help command.

Delete cache directory before copying old app directory to new app directory.

deploy_app instead of create_app for apps:rename testing.

Change app url to match new name. Fix unit tests.

Add some more tests, plugn triggers.
This commit is contained in:
Zach Feldman
2015-11-08 14:37:18 -05:00
parent cfe7604696
commit f0b260d7dc
3 changed files with 50 additions and 1 deletions

View File

@@ -100,6 +100,16 @@ This will prompt you to verify the application's name before destroying it. You
dokku --force apps:destroy APP
```
### Renaming a deployed app
You can rename a deployed app using the `apps:rename` CLI tool:
```shell
dokku apps:rename OLD_NAME NEW_NAME
```
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.
### Adding deploy users
While it is possible to use password-based authorization to push to Dokku, it is preferable to use key-based authentication for security. You can add your public key to the dokku user's `authorized_keys` file with the following command: