New command: dokku delete <app>
Two new hooks are implemented:
- pre-delete $APP
- post-delete $APP
The following are implemented in the `post-delete` hook:
- `$APP` directory deletion (00_dokku-standard)
- nginx reload (nginx-vhosts)
The following command can be executed by either the `dokku` or `git` user as `sudo`:
sudo /etc/init.d/nginx reload
Refs #124
Closes #186
This commit is contained in:
13
README.md
13
README.md
@@ -67,18 +67,9 @@ https://github.com/progrium/dokku/wiki/Plugins
|
||||
|
||||
## Removing a deployed app
|
||||
|
||||
Currently this is a manual process.
|
||||
SSH onto the server, then execute:
|
||||
|
||||
To remove an app, ssh to the server, then run:
|
||||
|
||||
$ sudo docker ps
|
||||
# Then from the list, take repository name of your app and run:
|
||||
$ sudo docker stop app/node-js-sample
|
||||
# To find the ids of images to delete, run:
|
||||
$ sudo docker images
|
||||
# Then from that list, take the IDs corresponding to your app, and
|
||||
# those corresponding to no tag at all, and for each run:
|
||||
$ sudo docker rmi 123456789
|
||||
$ dokku delete myapp
|
||||
|
||||
## Environment setup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user