@flarestudio/fcc-workbench 1.0.17 → 1.0.18
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/dist/modules/docker.js +2 -2
- package/package.json +1 -1
package/dist/modules/docker.js
CHANGED
|
@@ -41,7 +41,7 @@ export function runDockerCompose(args) {
|
|
|
41
41
|
* Check if the ext-proxy is healthy by polling its /info endpoint.
|
|
42
42
|
* Returns true when ready, throws after timeout.
|
|
43
43
|
*/
|
|
44
|
-
export async function waitForProxy(proxyUrl = 'http://localhost:
|
|
44
|
+
export async function waitForProxy(proxyUrl = 'http://localhost:6685', timeoutMs = 60000) {
|
|
45
45
|
const deadline = Date.now() + timeoutMs;
|
|
46
46
|
while (Date.now() < deadline) {
|
|
47
47
|
try {
|
|
@@ -61,7 +61,7 @@ export async function waitForProxy(proxyUrl = 'http://localhost:6675', timeoutMs
|
|
|
61
61
|
* The /info endpoint lives on the EXTERNAL port (6676).
|
|
62
62
|
* Retries because the external server starts after the DB sync completes.
|
|
63
63
|
*/
|
|
64
|
-
export async function fetchProxyInfo(proxyUrl = 'http://localhost:
|
|
64
|
+
export async function fetchProxyInfo(proxyUrl = 'http://localhost:6686', retries = 15, delayMs = 3000) {
|
|
65
65
|
for (let i = 0; i < retries; i++) {
|
|
66
66
|
try {
|
|
67
67
|
const res = await fetch(`${proxyUrl}/info`);
|
package/package.json
CHANGED