@saadnvd1/agent-os 0.3.644 → 0.3.646
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/redeploy +4 -2
package/package.json
CHANGED
package/scripts/redeploy
CHANGED
|
@@ -39,14 +39,16 @@ if [ -n "${AGENTOS_RESTART:-}" ]; then
|
|
|
39
39
|
echo "::phase restarting"
|
|
40
40
|
eval "$AGENTOS_RESTART"
|
|
41
41
|
port="${PORT:-3011}"
|
|
42
|
-
|
|
42
|
+
# Startup runs migrations, and one that copies the database first took 4.5
|
|
43
|
+
# minutes on a loaded Mac; a 40s wait called that a failure while it worked.
|
|
44
|
+
for _ in $(seq 1 "${AGENTOS_UP_WAIT:-600}"); do
|
|
43
45
|
if [ "$(curl -s -o /dev/null -w '%{http_code}' "http://127.0.0.1:$port/")" = 200 ]; then
|
|
44
46
|
echo "AgentOS is up on $port"
|
|
45
47
|
exit 0
|
|
46
48
|
fi
|
|
47
49
|
sleep 1
|
|
48
50
|
done
|
|
49
|
-
echo "AgentOS did not come back on $port; scripts/redeploy --rollback puts the last build back" >&2
|
|
51
|
+
echo "AgentOS did not come back on $port within ${AGENTOS_UP_WAIT:-600}s; scripts/redeploy --rollback puts the last build back" >&2
|
|
50
52
|
exit 1
|
|
51
53
|
fi
|
|
52
54
|
echo "Built. Restart your AgentOS server to run it."
|