Add success rendering

This commit is contained in:
Luke Murphy 2020-07-02 14:29:15 +02:00
parent 86d252bcdd
commit 72bd2bcabc
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 16 additions and 0 deletions

View File

@ -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")

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Deployed {{ app_name }}</title>
</head>
<body>
<p>{{ app_name }} deployed as the {{ stack_name }} stack!</p>
<p>Not sure if it actually succeeded but hey, we got here at least!</p>
</body>
</html>