Logo
Explore Help
Register Sign In
Mirrors/dokku
1
0
Fork 0
You've already forked dokku
mirror of https://github.com/dokku/dokku.git synced 2026-02-24 12:12:08 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
a284a805e07e8fe51ec574da170d6cd349b111eb
dokku/plugins/apps/pre-delete

8 lines
285 B
Plaintext
Raw Normal View History

Create an `apps` core plugin. This creates the following commands: - apps - apps:create <app> - apps:destroy <app> It also: - makes `delete` an alias for `apps:destroy` - adds confirmation to `apps:destroy` - allows a developer to remove apps that have been created via apps:create but have not been deployed Refs #87 Refs #543 Refs #586 Closes #599 Refs #655 Refs #656 Refs #685 Closes #757
2014-11-16 02:30:39 -05:00
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
APP="$1"; IMAGE="dokku/$APP"; CACHE_DIR="$DOKKU_ROOT/$APP/cache"
if [[ -d $CACHE_DIR ]]; then
try circle again
2015-01-03 10:55:40 -08:00
docker run --rm -v "$CACHE_DIR:/cache" "$IMAGE" find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \; || true
Create an `apps` core plugin. This creates the following commands: - apps - apps:create <app> - apps:destroy <app> It also: - makes `delete` an alias for `apps:destroy` - adds confirmation to `apps:destroy` - allows a developer to remove apps that have been created via apps:create but have not been deployed Refs #87 Refs #543 Refs #586 Closes #599 Refs #655 Refs #656 Refs #685 Closes #757
2014-11-16 02:30:39 -05:00
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 427ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API