1
0
Fork 0

dissable deploy while deploying

This commit is contained in:
lois Verheij 2025-03-19 15:34:18 +01:00
parent 4d950e2b38
commit a52f7ce648
2 changed files with 5 additions and 4 deletions
panel/src/panel

View file

@ -9,6 +9,7 @@
hx-trigger="click"
hx-indicator="#spinner-container"
hx-vals='{"deploy": ""}'
hx-disabled-elt="this"
hx-swap="none"
>
Deploy

View file

@ -131,9 +131,9 @@ class ConfigurationForm(LoginRequiredMixin, FormView):
"apply",
"test",
]
print('start deployment')
sleep(10)
print('done with deployment')
#subprocess.run(cmd, cwd=os.getenv("REPO_DIR") or f"{os.getcwd()}/..", env=env)
# print('start deployment')
# sleep(10)
# print('done with deployment')
subprocess.run(cmd, cwd=os.getenv("REPO_DIR") or f"{os.getcwd()}/..", env=env)
return super().form_valid(form)