Add success rendering
This commit is contained in:
parent
86d252bcdd
commit
72bd2bcabc
@ -176,6 +176,10 @@ def deploy(app_name):
|
|||||||
|
|
||||||
stack_deploy(app_name, form.data["stack_name"], env)
|
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__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=True, host="0.0.0.0")
|
app.run(debug=True, host="0.0.0.0")
|
||||||
|
12
templates/second/deploy.html
Normal file
12
templates/second/deploy.html
Normal 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>
|
Reference in New Issue
Block a user