ework-web 0.10.4 → 0.10.5
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/src/daemon-deploy.ts +4 -2
package/package.json
CHANGED
package/src/daemon-deploy.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface BatchTarget {
|
|
|
29
29
|
|
|
30
30
|
const FORWARD_KEYS = [
|
|
31
31
|
"WORK_DB_DRIVER",
|
|
32
|
+
"WORK_DB_PORT",
|
|
32
33
|
"WORK_DB_USER",
|
|
33
34
|
"WORK_DB_PASSWORD",
|
|
34
35
|
"WORK_DB_NAME",
|
|
@@ -113,8 +114,9 @@ function buildSetupScript(envBlock: string, daemonPort: number, mysqlHostRaw: st
|
|
|
113
114
|
`echo "[4/5] starting daemon..."`,
|
|
114
115
|
`ework-aio start daemon`,
|
|
115
116
|
`echo "[5/5] verifying daemon is alive..."`,
|
|
116
|
-
`sleep
|
|
117
|
-
`curl -sf --max-time
|
|
117
|
+
`sleep 3`,
|
|
118
|
+
`curl -sf --max-time 5 http://127.0.0.1:${String(daemonPort)}/api/status 2>/dev/null && echo "DAEMON_ALIVE" || { echo "DAEMON_FAILED: status check failed"; echo "=== daemon log (last 20 lines) ==="; tail -20 ~/.local/share/ework-aio/run/daemon.log 2>/dev/null || echo "(no log)"; exit 1; }`,
|
|
119
|
+
`echo "=== hostname: $(hostname) ==="`,
|
|
118
120
|
`echo DAEMON_STARTED`,
|
|
119
121
|
].join("\n");
|
|
120
122
|
}
|