forked from Fediversity/Fediversity
dissable deploy while deploying
This commit is contained in:
parent
4d950e2b38
commit
a52f7ce648
2 changed files with 5 additions and 4 deletions
panel/src/panel
|
@ -9,6 +9,7 @@
|
|||
hx-trigger="click"
|
||||
hx-indicator="#spinner-container"
|
||||
hx-vals='{"deploy": ""}'
|
||||
hx-disabled-elt="this"
|
||||
hx-swap="none"
|
||||
>
|
||||
Deploy
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue