create-workframe 0.1.9 → 0.1.10
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
CHANGED
|
@@ -174,7 +174,16 @@ fi
|
|
|
174
174
|
|
|
175
175
|
echo "Rebuilding workframe-api and workframe-supervisor..."
|
|
176
176
|
workframe_compose build workframe-api workframe-supervisor
|
|
177
|
-
|
|
177
|
+
if [[ "${WORKFRAME_UPDATE_FROM_SUPERVISOR:-}" == "1" ]]; then
|
|
178
|
+
# ponytail: supervisor cannot recreate itself inside the stack.apply request — defer after handler returns
|
|
179
|
+
workframe_compose up -d --build --no-deps workframe-api
|
|
180
|
+
(
|
|
181
|
+
sleep 3
|
|
182
|
+
workframe_compose up -d --no-deps workframe-supervisor
|
|
183
|
+
) >/tmp/workframe-supervisor-restart.log 2>&1 &
|
|
184
|
+
else
|
|
185
|
+
workframe_compose up -d --build --no-deps workframe-api workframe-supervisor
|
|
186
|
+
fi
|
|
178
187
|
|
|
179
188
|
if workframe_compose config --services 2>/dev/null | grep -qx workframe-ui; then
|
|
180
189
|
workframe_compose up -d --no-deps workframe-ui || workframe_compose restart workframe-ui || true
|
|
@@ -93,6 +93,7 @@ def _stack_apply(target: str, *, workframe_version: str = "", workframe_tarball:
|
|
|
93
93
|
env = os.environ.copy()
|
|
94
94
|
version = str(workframe_version or "").strip()
|
|
95
95
|
tarball = str(workframe_tarball or "").strip()
|
|
96
|
+
env["WORKFRAME_UPDATE_FROM_SUPERVISOR"] = "1"
|
|
96
97
|
if tarball and target in {"workframe", "all"}:
|
|
97
98
|
env["WORKFRAME_UPDATE_TARBALL"] = tarball
|
|
98
99
|
if version:
|