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-trigger="click"
|
||||||
hx-indicator="#spinner-container"
|
hx-indicator="#spinner-container"
|
||||||
hx-vals='{"deploy": ""}'
|
hx-vals='{"deploy": ""}'
|
||||||
|
hx-disabled-elt="this"
|
||||||
hx-swap="none"
|
hx-swap="none"
|
||||||
>
|
>
|
||||||
Deploy
|
Deploy
|
||||||
|
|
|
@ -131,9 +131,9 @@ class ConfigurationForm(LoginRequiredMixin, FormView):
|
||||||
"apply",
|
"apply",
|
||||||
"test",
|
"test",
|
||||||
]
|
]
|
||||||
print('start deployment')
|
# print('start deployment')
|
||||||
sleep(10)
|
# sleep(10)
|
||||||
print('done with deployment')
|
# print('done with deployment')
|
||||||
#subprocess.run(cmd, cwd=os.getenv("REPO_DIR") or f"{os.getcwd()}/..", env=env)
|
subprocess.run(cmd, cwd=os.getenv("REPO_DIR") or f"{os.getcwd()}/..", env=env)
|
||||||
|
|
||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|
Loading…
Add table
Reference in a new issue