From a75c464614936030b9d41f99837127759f34b71a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 24 Feb 2024 23:46:15 -0500 Subject: [PATCH] feat: add a helper binary to deploy a test app for local development --- .devcontainer/bin/deploy-test-app | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .devcontainer/bin/deploy-test-app diff --git a/.devcontainer/bin/deploy-test-app b/.devcontainer/bin/deploy-test-app new file mode 100755 index 000000000..2a1b2ab79 --- /dev/null +++ b/.devcontainer/bin/deploy-test-app @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +main() { + declare APP="${1:-test}" + + if ! dokku apps:exists $APP; then + dokku apps:create $APP + fi + + dokku builder-herokuish:set $APP allowed true + dokku git:sync --build $APP https://github.com/dokku/smoke-test-app.git +} + +main "$@"