From 72bd2bcabcd684c3841c8afcd388b858065c9730 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 2 Jul 2020 14:29:15 +0200 Subject: [PATCH] Add success rendering --- second.py | 4 ++++ templates/second/deploy.html | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 templates/second/deploy.html diff --git a/second.py b/second.py index f494bb6..4bc7492 100644 --- a/second.py +++ b/second.py @@ -176,6 +176,10 @@ def deploy(app_name): stack_deploy(app_name, form.data["stack_name"], env) + return render_template( + "second/deploy.html", app_name=app_name, stack_name=form.data["stack_name"] + ) + if __name__ == "__main__": app.run(debug=True, host="0.0.0.0") diff --git a/templates/second/deploy.html b/templates/second/deploy.html new file mode 100644 index 0000000..23a7a57 --- /dev/null +++ b/templates/second/deploy.html @@ -0,0 +1,12 @@ + + + + + + Deployed {{ app_name }} + + +

{{ app_name }} deployed as the {{ stack_name }} stack!

+

Not sure if it actually succeeded but hey, we got here at least!

+ +