fix: hooks order in PhotoGalleryManager for production build
This commit is contained in:
21
deploy/check-latest-fail.py
Normal file
21
deploy/check-latest-fail.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
import paramiko, json, re
|
||||
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect("10.10.0.10", username="localadministrator", password="Bbt9115xty9176!", timeout=20, allow_agent=False, look_for_keys=False)
|
||||
|
||||
_, o, e = c.exec_command(
|
||||
"docker exec coolify-db psql -U coolify -d coolify -t -c "
|
||||
"\"SELECT id,status,substring(logs from 1 for 8000) FROM application_deployment_queues ORDER BY id DESC LIMIT 1;\"",
|
||||
timeout=60,
|
||||
)
|
||||
o.channel.recv_exit_status()
|
||||
raw = (o.read() + e.read()).decode(errors="replace")
|
||||
print(raw[-10000:])
|
||||
# extract Failed to compile section
|
||||
if "Failed to compile" in raw:
|
||||
m = re.search(r"Failed to compile\.[\s\S]{0,2000}", raw)
|
||||
if m:
|
||||
print("\n--- ERROR ---\n", m.group(0)[:1500])
|
||||
c.close()
|
||||
Reference in New Issue
Block a user