@supatype/cli 0.9.1 → 0.9.2
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/CHANGELOG.md +303 -91
- package/bin/node-version.js +28 -0
- package/bin/supatype.js +8 -4
- package/dist/app/port-holder.d.ts +33 -0
- package/dist/app/port-holder.d.ts.map +1 -0
- package/dist/app/port-holder.js +66 -0
- package/dist/app/port-holder.js.map +1 -0
- package/dist/app/proxy-dev-app.d.ts +21 -3
- package/dist/app/proxy-dev-app.d.ts.map +1 -1
- package/dist/app/proxy-dev-app.js +84 -46
- package/dist/app/proxy-dev-app.js.map +1 -1
- package/dist/app/vite-dev-args.d.ts +20 -0
- package/dist/app/vite-dev-args.d.ts.map +1 -0
- package/dist/app/vite-dev-args.js +65 -0
- package/dist/app/vite-dev-args.js.map +1 -0
- package/dist/app-config.d.ts +2 -0
- package/dist/app-config.d.ts.map +1 -1
- package/dist/app-config.js +27 -8
- package/dist/app-config.js.map +1 -1
- package/dist/augmentation-generator.d.ts +2 -0
- package/dist/augmentation-generator.d.ts.map +1 -1
- package/dist/augmentation-generator.js +7 -3
- package/dist/augmentation-generator.js.map +1 -1
- package/dist/binary-download-lock.d.ts.map +1 -1
- package/dist/binary-download-lock.js +2 -10
- package/dist/binary-download-lock.js.map +1 -1
- package/dist/cache-provider.d.ts +17 -2
- package/dist/cache-provider.d.ts.map +1 -1
- package/dist/cache-provider.js +28 -3
- package/dist/cache-provider.js.map +1 -1
- package/dist/cli-version-embedded.js +1 -1
- package/dist/cli.d.ts +7 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +10 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/admin.js +5 -11
- package/dist/commands/admin.js.map +1 -1
- package/dist/commands/app.d.ts.map +1 -1
- package/dist/commands/app.js +22 -2
- package/dist/commands/app.js.map +1 -1
- package/dist/commands/dev.d.ts +21 -4
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +222 -68
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +3 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts +6 -8
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +193 -114
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/link-helpers.js +1 -1
- package/dist/commands/link-helpers.js.map +1 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +3 -1
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/self-host.d.ts +3 -3
- package/dist/commands/self-host.d.ts.map +1 -1
- package/dist/commands/self-host.js +68 -269
- package/dist/commands/self-host.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +156 -63
- package/dist/commands/update.js.map +1 -1
- package/dist/compose-db-roles.d.ts.map +1 -1
- package/dist/compose-db-roles.js +3 -0
- package/dist/compose-db-roles.js.map +1 -1
- package/dist/compose-rename.d.ts.map +1 -1
- package/dist/compose-rename.js +5 -0
- package/dist/compose-rename.js.map +1 -1
- package/dist/compose-render-mode.d.ts +8 -3
- package/dist/compose-render-mode.d.ts.map +1 -1
- package/dist/compose-render-mode.js +13 -5
- package/dist/compose-render-mode.js.map +1 -1
- package/dist/compose-services.d.ts.map +1 -1
- package/dist/compose-services.js +3 -2
- package/dist/compose-services.js.map +1 -1
- package/dist/config-mailer-env.d.ts +6 -2
- package/dist/config-mailer-env.d.ts.map +1 -1
- package/dist/config-mailer-env.js +9 -11
- package/dist/config-mailer-env.js.map +1 -1
- package/dist/config-version-pin.d.ts +42 -0
- package/dist/config-version-pin.d.ts.map +1 -0
- package/dist/config-version-pin.js +64 -0
- package/dist/config-version-pin.js.map +1 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -2
- package/dist/config.js.map +1 -1
- package/dist/dev-compose.d.ts +9 -4
- package/dist/dev-compose.d.ts.map +1 -1
- package/dist/dev-compose.js +87 -53
- package/dist/dev-compose.js.map +1 -1
- package/dist/dev-initial-push.d.ts.map +1 -1
- package/dist/dev-initial-push.js +6 -0
- package/dist/dev-initial-push.js.map +1 -1
- package/dist/dev-ports.d.ts +7 -2
- package/dist/dev-ports.d.ts.map +1 -1
- package/dist/dev-ports.js +44 -22
- package/dist/dev-ports.js.map +1 -1
- package/dist/dev-ready-panel.d.ts +26 -3
- package/dist/dev-ready-panel.d.ts.map +1 -1
- package/dist/dev-ready-panel.js +37 -5
- package/dist/dev-ready-panel.js.map +1 -1
- package/dist/dev-self-start.d.ts +16 -0
- package/dist/dev-self-start.d.ts.map +1 -0
- package/dist/dev-self-start.js +31 -0
- package/dist/dev-self-start.js.map +1 -0
- package/dist/dev-session-lock.d.ts +66 -2
- package/dist/dev-session-lock.d.ts.map +1 -1
- package/dist/dev-session-lock.js +104 -5
- package/dist/dev-session-lock.js.map +1 -1
- package/dist/dev-session.d.ts +6 -1
- package/dist/dev-session.d.ts.map +1 -1
- package/dist/dev-session.js +9 -3
- package/dist/dev-session.js.map +1 -1
- package/dist/dev-shutdown.d.ts +11 -2
- package/dist/dev-shutdown.d.ts.map +1 -1
- package/dist/dev-shutdown.js +23 -9
- package/dist/dev-shutdown.js.map +1 -1
- package/dist/docker-runtime.d.ts +31 -7
- package/dist/docker-runtime.d.ts.map +1 -1
- package/dist/docker-runtime.js +104 -36
- package/dist/docker-runtime.js.map +1 -1
- package/dist/engine-columns.d.ts +26 -0
- package/dist/engine-columns.d.ts.map +1 -0
- package/dist/engine-columns.js +67 -0
- package/dist/engine-columns.js.map +1 -0
- package/dist/env-file.d.ts +18 -3
- package/dist/env-file.d.ts.map +1 -1
- package/dist/env-file.js +23 -7
- package/dist/env-file.js.map +1 -1
- package/dist/frontend-env.d.ts +3 -2
- package/dist/frontend-env.d.ts.map +1 -1
- package/dist/frontend-env.js +1 -1
- package/dist/frontend-env.js.map +1 -1
- package/dist/functions-deno-types.d.ts.map +1 -1
- package/dist/functions-deno-types.js +5 -5
- package/dist/functions-deno-types.js.map +1 -1
- package/dist/functions-worker-files.d.ts.map +1 -1
- package/dist/functions-worker-files.js +2 -13
- package/dist/functions-worker-files.js.map +1 -1
- package/dist/generated/release-images.d.ts +6 -6
- package/dist/generated/release-images.js +3 -3
- package/dist/gitignore.d.ts +29 -2
- package/dist/gitignore.d.ts.map +1 -1
- package/dist/gitignore.js +86 -21
- package/dist/gitignore.js.map +1 -1
- package/dist/hooks-generator.d.ts.map +1 -1
- package/dist/hooks-generator.js +4 -2
- package/dist/hooks-generator.js.map +1 -1
- package/dist/host-database.d.ts +6 -2
- package/dist/host-database.d.ts.map +1 -1
- package/dist/host-database.js +10 -2
- package/dist/host-database.js.map +1 -1
- package/dist/init-dependency-versions.d.ts +2 -3
- package/dist/init-dependency-versions.d.ts.map +1 -1
- package/dist/init-dependency-versions.js +12 -9
- package/dist/init-dependency-versions.js.map +1 -1
- package/dist/init-example.d.ts.map +1 -1
- package/dist/init-example.js +13 -1
- package/dist/init-example.js.map +1 -1
- package/dist/init-expo-runtime-env.d.ts +25 -0
- package/dist/init-expo-runtime-env.d.ts.map +1 -0
- package/dist/init-expo-runtime-env.js +112 -0
- package/dist/init-expo-runtime-env.js.map +1 -0
- package/dist/init-next-runtime-env.d.ts +14 -1
- package/dist/init-next-runtime-env.d.ts.map +1 -1
- package/dist/init-next-runtime-env.js +116 -35
- package/dist/init-next-runtime-env.js.map +1 -1
- package/dist/init-package-json.d.ts +11 -3
- package/dist/init-package-json.d.ts.map +1 -1
- package/dist/init-package-json.js +20 -13
- package/dist/init-package-json.js.map +1 -1
- package/dist/init-port-registry.d.ts +19 -0
- package/dist/init-port-registry.d.ts.map +1 -0
- package/dist/init-port-registry.js +57 -0
- package/dist/init-port-registry.js.map +1 -0
- package/dist/init-project-detect.d.ts +20 -0
- package/dist/init-project-detect.d.ts.map +1 -1
- package/dist/init-project-detect.js +41 -8
- package/dist/init-project-detect.js.map +1 -1
- package/dist/init-vite-node.d.ts +21 -0
- package/dist/init-vite-node.d.ts.map +1 -0
- package/dist/init-vite-node.js +75 -0
- package/dist/init-vite-node.js.map +1 -0
- package/dist/jsx-first-child.d.ts +18 -0
- package/dist/jsx-first-child.d.ts.map +1 -0
- package/dist/jsx-first-child.js +53 -0
- package/dist/jsx-first-child.js.map +1 -0
- package/dist/keyspace-password-file.d.ts +46 -0
- package/dist/keyspace-password-file.d.ts.map +1 -0
- package/dist/keyspace-password-file.js +128 -0
- package/dist/keyspace-password-file.js.map +1 -0
- package/dist/kong-config.d.ts +1 -0
- package/dist/kong-config.d.ts.map +1 -1
- package/dist/kong-config.js +64 -20
- package/dist/kong-config.js.map +1 -1
- package/dist/local-gateway.d.ts +11 -3
- package/dist/local-gateway.d.ts.map +1 -1
- package/dist/local-gateway.js +16 -7
- package/dist/local-gateway.js.map +1 -1
- package/dist/local-secrets.d.ts +10 -0
- package/dist/local-secrets.d.ts.map +1 -1
- package/dist/local-secrets.js +13 -0
- package/dist/local-secrets.js.map +1 -1
- package/dist/local-stack-guard.d.ts.map +1 -1
- package/dist/local-stack-guard.js +3 -2
- package/dist/local-stack-guard.js.map +1 -1
- package/dist/local-stack.d.ts.map +1 -1
- package/dist/local-stack.js +7 -6
- package/dist/local-stack.js.map +1 -1
- package/dist/local-storage.d.ts +3 -5
- package/dist/local-storage.d.ts.map +1 -1
- package/dist/local-storage.js +10 -10
- package/dist/local-storage.js.map +1 -1
- package/dist/mailer-autoconfirm.d.ts +29 -24
- package/dist/mailer-autoconfirm.d.ts.map +1 -1
- package/dist/mailer-autoconfirm.js +47 -43
- package/dist/mailer-autoconfirm.js.map +1 -1
- package/dist/model-hooks.d.ts +4 -4
- package/dist/model-hooks.d.ts.map +1 -1
- package/dist/model-hooks.js +13 -7
- package/dist/model-hooks.js.map +1 -1
- package/dist/native-dev-env.d.ts +25 -2
- package/dist/native-dev-env.d.ts.map +1 -1
- package/dist/native-dev-env.js +39 -4
- package/dist/native-dev-env.js.map +1 -1
- package/dist/native-keyspace.d.ts +21 -6
- package/dist/native-keyspace.d.ts.map +1 -1
- package/dist/native-keyspace.js +48 -14
- package/dist/native-keyspace.js.map +1 -1
- package/dist/native-leftover-postgres.d.ts +23 -0
- package/dist/native-leftover-postgres.d.ts.map +1 -0
- package/dist/native-leftover-postgres.js +55 -0
- package/dist/native-leftover-postgres.js.map +1 -0
- package/dist/native-leftover-services.d.ts +17 -0
- package/dist/native-leftover-services.d.ts.map +1 -0
- package/dist/native-leftover-services.js +93 -0
- package/dist/native-leftover-services.js.map +1 -0
- package/dist/native-pg-auth.d.ts.map +1 -1
- package/dist/native-pg-auth.js +2 -1
- package/dist/native-pg-auth.js.map +1 -1
- package/dist/native-port-lock.d.ts +37 -0
- package/dist/native-port-lock.d.ts.map +1 -0
- package/dist/native-port-lock.js +78 -0
- package/dist/native-port-lock.js.map +1 -0
- package/dist/native-realtime.d.ts +6 -3
- package/dist/native-realtime.d.ts.map +1 -1
- package/dist/native-realtime.js +65 -24
- package/dist/native-realtime.js.map +1 -1
- package/dist/native-roles-sql.d.ts.map +1 -1
- package/dist/native-roles-sql.js +2 -1
- package/dist/native-roles-sql.js.map +1 -1
- package/dist/native-storage-import.d.ts.map +1 -1
- package/dist/native-storage-import.js +6 -5
- package/dist/native-storage-import.js.map +1 -1
- package/dist/native-storage.d.ts +42 -7
- package/dist/native-storage.d.ts.map +1 -1
- package/dist/native-storage.js +196 -50
- package/dist/native-storage.js.map +1 -1
- package/dist/parent-watch.d.ts.map +1 -1
- package/dist/parent-watch.js +4 -8
- package/dist/parent-watch.js.map +1 -1
- package/dist/postgres-ctl.d.ts +31 -5
- package/dist/postgres-ctl.d.ts.map +1 -1
- package/dist/postgres-ctl.js +49 -11
- package/dist/postgres-ctl.js.map +1 -1
- package/dist/postgres-image.d.ts +16 -0
- package/dist/postgres-image.d.ts.map +1 -1
- package/dist/postgres-image.js +34 -11
- package/dist/postgres-image.js.map +1 -1
- package/dist/process-info.d.ts +14 -0
- package/dist/process-info.d.ts.map +1 -0
- package/dist/process-info.js +41 -0
- package/dist/process-info.js.map +1 -0
- package/dist/process-manager.d.ts +73 -4
- package/dist/process-manager.d.ts.map +1 -1
- package/dist/process-manager.js +121 -45
- package/dist/process-manager.js.map +1 -1
- package/dist/process-tree.d.ts +48 -0
- package/dist/process-tree.d.ts.map +1 -0
- package/dist/process-tree.js +141 -0
- package/dist/process-tree.js.map +1 -0
- package/dist/project-config.d.ts +33 -4
- package/dist/project-config.d.ts.map +1 -1
- package/dist/project-config.js +5 -1
- package/dist/project-config.js.map +1 -1
- package/dist/required-host-components.d.ts.map +1 -1
- package/dist/required-host-components.js +3 -5
- package/dist/required-host-components.js.map +1 -1
- package/dist/route-manifest.d.ts +24 -0
- package/dist/route-manifest.d.ts.map +1 -1
- package/dist/route-manifest.js +60 -2
- package/dist/route-manifest.js.map +1 -1
- package/dist/run-captured.d.ts +3 -1
- package/dist/run-captured.d.ts.map +1 -1
- package/dist/run-captured.js.map +1 -1
- package/dist/run-until-stopped.d.ts +3 -0
- package/dist/run-until-stopped.d.ts.map +1 -1
- package/dist/run-until-stopped.js +25 -11
- package/dist/run-until-stopped.js.map +1 -1
- package/dist/runtime-routes.d.ts +5 -0
- package/dist/runtime-routes.d.ts.map +1 -1
- package/dist/runtime-routes.js +5 -1
- package/dist/runtime-routes.js.map +1 -1
- package/dist/secret-sql.d.ts +13 -0
- package/dist/secret-sql.d.ts.map +1 -0
- package/dist/secret-sql.js +13 -0
- package/dist/secret-sql.js.map +1 -0
- package/dist/seed-ir.d.ts +8 -1
- package/dist/seed-ir.d.ts.map +1 -1
- package/dist/seed-ir.js +92 -6
- package/dist/seed-ir.js.map +1 -1
- package/dist/seed.d.ts +15 -2
- package/dist/seed.d.ts.map +1 -1
- package/dist/self-host-compose.d.ts +15 -1
- package/dist/self-host-compose.d.ts.map +1 -1
- package/dist/self-host-compose.js +216 -51
- package/dist/self-host-compose.js.map +1 -1
- package/dist/stack-exit-watch.d.ts +15 -0
- package/dist/stack-exit-watch.d.ts.map +1 -1
- package/dist/stack-exit-watch.js +41 -13
- package/dist/stack-exit-watch.js.map +1 -1
- package/dist/stack-folder.d.ts +28 -0
- package/dist/stack-folder.d.ts.map +1 -0
- package/dist/stack-folder.js +123 -0
- package/dist/stack-folder.js.map +1 -0
- package/dist/stack-setting-warnings.d.ts +2 -1
- package/dist/stack-setting-warnings.d.ts.map +1 -1
- package/dist/stack-setting-warnings.js +6 -1
- package/dist/stack-setting-warnings.js.map +1 -1
- package/dist/storage-provision.d.ts +12 -2
- package/dist/storage-provision.d.ts.map +1 -1
- package/dist/storage-provision.js +36 -11
- package/dist/storage-provision.js.map +1 -1
- package/dist/type-extractor.d.ts.map +1 -1
- package/dist/type-extractor.js +27 -3
- package/dist/type-extractor.js.map +1 -1
- package/dist/ui/dev/DevReadyPanelView.js +1 -1
- package/dist/ui/dev/DevReadyPanelView.js.map +1 -1
- package/dist/valkey-sidecar.d.ts +24 -11
- package/dist/valkey-sidecar.d.ts.map +1 -1
- package/dist/valkey-sidecar.js +45 -25
- package/dist/valkey-sidecar.js.map +1 -1
- package/dist/windows-processes.d.ts +7 -0
- package/dist/windows-processes.d.ts.map +1 -0
- package/dist/windows-processes.js +31 -0
- package/dist/windows-processes.js.map +1 -0
- package/dist/write-if-changed.d.ts +12 -0
- package/dist/write-if-changed.d.ts.map +1 -0
- package/dist/write-if-changed.js +32 -0
- package/dist/write-if-changed.js.map +1 -0
- package/package.json +6 -4
- package/dist/systemd.d.ts +0 -26
- package/dist/systemd.d.ts.map +0 -1
- package/dist/systemd.js +0 -117
- package/dist/systemd.js.map +0 -1
package/dist/dev-compose.js
CHANGED
|
@@ -5,18 +5,17 @@ import { setTimeout as sleep } from "node:timers/promises";
|
|
|
5
5
|
import { projectOutputPaths, writeAstDerivedOutputs, writeSeedBuilder } from "./type-generation.js";
|
|
6
6
|
import { errorMessage } from "./error-message.js";
|
|
7
7
|
import { printRoleAccess } from "./diff-access.js";
|
|
8
|
-
import {
|
|
8
|
+
import { postApplyFailed } from "./post-apply.js";
|
|
9
9
|
import { FRONTEND_URL_KEYS, frontendEnv, writeFrontendEnv } from "./frontend-env.js";
|
|
10
10
|
import { withPublishing } from "./model-versioning.js";
|
|
11
11
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
12
|
-
import { homedir } from "node:os";
|
|
13
12
|
import { dirname, join } from "node:path";
|
|
14
13
|
import { askDocker, askDockerSync, DOCKER_EXEC_TIMEOUT_MS, DOCKER_QUERY_TIMEOUT_MS } from "./docker-exec.js";
|
|
15
|
-
import {
|
|
14
|
+
import { appPanelLinks, startProxyDevApp } from "./app/proxy-dev-app.js";
|
|
16
15
|
import { loadSchemaAst, projectNameInFile } from "./config.js";
|
|
17
16
|
import { withComposeSchemaPushLock } from "./schema-push-lock.js";
|
|
18
17
|
import { recordDatabaseTier, sameApiSurface } from "./recorded-field-masking-tier.js";
|
|
19
|
-
import { connectionString, pgSchema, projectRootFromConfig, resolveRuntimeProvider, schemaPathFromProject, selfHostTlsEnabled, usesExternalDatabase, } from "./project-config.js";
|
|
18
|
+
import { connectionString, nativeStateRoot, pgSchema, projectRootFromConfig, resolveRuntimeProvider, schemaPathFromProject, selfHostTlsEnabled, usesExternalDatabase, } from "./project-config.js";
|
|
20
19
|
import { rowCacheChangeNote } from "./model-cache.js";
|
|
21
20
|
import { writeAppliedAstArtifacts } from "./applied-ast-artifacts.js";
|
|
22
21
|
import { anonKeyEnvUpdates } from "./commands/keys.js";
|
|
@@ -26,7 +25,8 @@ import { astRelatesToAuthUsers } from "./byo-preflight.js";
|
|
|
26
25
|
import { ensureDevDbPort, ensureKongPort } from "./dev-ports.js";
|
|
27
26
|
import { applyForThisRun, splitShellPortUpdates } from "./shell-ports.js";
|
|
28
27
|
import { handleComposeProjectRename } from "./compose-rename.js";
|
|
29
|
-
import { devSessionLockFor, recoverStaleDevSession, writeDevSessionLock } from "./dev-session-lock.js";
|
|
28
|
+
import { devSessionLockFor, enterLocalStack, recoverStaleDevSession, writeDevSessionLock } from "./dev-session-lock.js";
|
|
29
|
+
import { recordStackFolder, refuseOtherFoldersStack } from "./stack-folder.js";
|
|
30
30
|
import { endDevSession, showDevStep, startDevSession, withSavePushOutput } from "./dev-session.js";
|
|
31
31
|
import { ensureDevApiConfig } from "./ensure-dev-api-config.js";
|
|
32
32
|
import { cacheSeedingNotes } from "./api-config-cache.js";
|
|
@@ -57,7 +57,7 @@ import { registerDevShutdown, waitForDevShutdown } from "./dev-shutdown.js";
|
|
|
57
57
|
import { filterComposeNoise, parseEngineJsonOutput, parseEnginePushOutput, reportAppliedPush, } from "./engine-push-output.js";
|
|
58
58
|
import { withAdminRoles } from "./studio-admin-roles.js";
|
|
59
59
|
import { restoreSystemRelationTargets } from "./restore-system-relation-targets.js";
|
|
60
|
-
import { provisionBucketsFromAst, unprovisionedBuckets } from "./storage-provision.js";
|
|
60
|
+
import { provisionBucketsFromAst, unprovisionedBuckets, warnBucketsLeft } from "./storage-provision.js";
|
|
61
61
|
import { ensureFirstAdminUserForProject } from "./commands/admin.js";
|
|
62
62
|
import { demoDataHint, publishDevReady } from "./dev-ready-panel.js";
|
|
63
63
|
import { pushInitialSchema, settleInitialPush } from "./dev-initial-push.js";
|
|
@@ -74,6 +74,7 @@ import { spawnComposeEngine, spawnComposeEngineSync } from "./compose-engine-run
|
|
|
74
74
|
import { waitForRestReady } from "./rest-ready.js";
|
|
75
75
|
import { claimDevRenderMode, composeRenderMode, composeRenderOptions, runningStackMode } from "./compose-render-mode.js";
|
|
76
76
|
import { configMailerEnv } from "./config-mailer-env.js";
|
|
77
|
+
import { retireCliMailerAutoconfirm } from "./mailer-autoconfirm.js";
|
|
77
78
|
import { fetchWithin } from "./fetch-within.js";
|
|
78
79
|
import { composeStackWatch, exitedServiceFailure } from "./stack-exit-watch.js";
|
|
79
80
|
import { assertEngineVersionSupported, engineImageVersion } from "./engine-floor.js";
|
|
@@ -182,8 +183,8 @@ export async function projectComposeEngine(cwd, config) {
|
|
|
182
183
|
return undefined;
|
|
183
184
|
if (config.connection?.trim())
|
|
184
185
|
return undefined;
|
|
186
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
185
187
|
const paths = writeSelfHostCompose(cwd, config, composeRenderOptions(cwd, config.project.name));
|
|
186
|
-
const project = composeProjectName(config.project.name);
|
|
187
188
|
const engineImage = await schemaEngineImageForPush(config, cwd);
|
|
188
189
|
return {
|
|
189
190
|
target: { cwd, project, composePath: paths.composePath, engineImage },
|
|
@@ -219,10 +220,14 @@ async function startComposeDatabase(config, paths, cwd, project, brand, timeoutM
|
|
|
219
220
|
}
|
|
220
221
|
await waitComposeHealthy(paths, cwd, timeoutMs, project);
|
|
221
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* Write dev's values into `.env`, and return those held for this run only (DR9): built from a port
|
|
225
|
+
* only the shell gave, and set in this process's environment instead. The dev session records them.
|
|
226
|
+
*/
|
|
222
227
|
export function upsertDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPort, devDbPort) {
|
|
223
228
|
const apiUrl = `http://localhost:${kongPort}`;
|
|
224
229
|
const imagePins = checkedImagePins(config);
|
|
225
|
-
const mailer = configMailerEnv(
|
|
230
|
+
const mailer = configMailerEnv(config);
|
|
226
231
|
// `POSTGRES_PASSWORD` and `JWT_SECRET` are deliberately absent.
|
|
227
232
|
//
|
|
228
233
|
// They used to be pinned here to published constants on every `dev` run, against the same
|
|
@@ -248,9 +253,9 @@ export function upsertDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPo
|
|
|
248
253
|
SUPATYPE_KONG_PORT: String(kongPort),
|
|
249
254
|
API_EXTERNAL_URL: apiUrl,
|
|
250
255
|
SITE_URL: apiUrl,
|
|
251
|
-
//
|
|
252
|
-
//
|
|
253
|
-
//
|
|
256
|
+
// email.provider and its settings, which the compose file passes to the server. The compose path
|
|
257
|
+
// used to carry none of them, so a project that asked for smtp, Resend or SES got the noop
|
|
258
|
+
// mailer. Email confirmation is not written here: the compose file falls back to the config.
|
|
254
259
|
...mailer.updates,
|
|
255
260
|
...imagePins,
|
|
256
261
|
};
|
|
@@ -290,9 +295,9 @@ export function upsertDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPo
|
|
|
290
295
|
// The front end's copies go where a development build reads them, not .env, which a production
|
|
291
296
|
// build reads (frontend-env.ts). The URL only when it is the project's port, not the shell's.
|
|
292
297
|
writeFrontendEnv(cwd, { anonKey, ...(urlsKept && { apiUrl }) }, { local: true });
|
|
293
|
-
if (devDbPort
|
|
294
|
-
|
|
295
|
-
}
|
|
298
|
+
if (devDbPort === undefined || usesExternalDatabase(config))
|
|
299
|
+
return runOnly;
|
|
300
|
+
return { ...runOnly, ...writeDevStackDatabaseUrl(cwd, devDbPort, runOnly.SUPATYPE_DEV_DB_PORT !== undefined) };
|
|
296
301
|
}
|
|
297
302
|
/** `persist` less the front-end URL names, and whether they were among what is kept. */
|
|
298
303
|
function takeFrontendUrls(persist) {
|
|
@@ -315,18 +320,22 @@ function staleLocalServerImage(current, wantsLocalServer, imagePins) {
|
|
|
315
320
|
* Docker dev's DATABASE_URL: the stack's database at `devDbPort`, with the project's own user and
|
|
316
321
|
* database, not hardcoded ones, which on a project not named "supatype" named a database that does
|
|
317
322
|
* not exist. Written over a URL the CLI owns, for this run only when the port is the shell's; one
|
|
318
|
-
* that is yours always wins (database-url-owner.ts).
|
|
323
|
+
* that is yours always wins (database-url-owner.ts). The URL when it was set for this run only.
|
|
319
324
|
*/
|
|
320
325
|
function writeDevStackDatabaseUrl(cwd, devDbPort, runOnly) {
|
|
321
326
|
const url = hostComposeDbUrl(cwd, devDbPort);
|
|
322
|
-
if (runOnly)
|
|
323
|
-
setCliDatabaseUrlForRun(databaseUrlState(cwd), url);
|
|
324
|
-
else
|
|
327
|
+
if (!runOnly) {
|
|
325
328
|
writeCliDatabaseUrl(cwd, url);
|
|
329
|
+
return {};
|
|
330
|
+
}
|
|
331
|
+
return setCliDatabaseUrlForRun(databaseUrlState(cwd), url) ? { DATABASE_URL: url } : {};
|
|
326
332
|
}
|
|
327
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* Keep compose + Studio on the same freshly signed dev JWTs; sync optional image pins from config.
|
|
335
|
+
* The values held for this run only, as {@link upsertDevComposeEnv} returns them.
|
|
336
|
+
*/
|
|
328
337
|
function ensureDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPort, devDbPort) {
|
|
329
|
-
upsertDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPort, devDbPort);
|
|
338
|
+
return upsertDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPort, devDbPort);
|
|
330
339
|
}
|
|
331
340
|
/**
|
|
332
341
|
* The dev `.env` a push to a dev stack keeps current: the dev database port and the dev values.
|
|
@@ -513,15 +522,16 @@ async function waitStorageApiReady(kongPort, serviceRoleKey, maxSec) {
|
|
|
513
522
|
console.warn(`[supatype] Storage API at ${url} did not become ready within ${maxSec}s, bucket provisioning may fail.`);
|
|
514
523
|
}
|
|
515
524
|
/**
|
|
516
|
-
* The schema's buckets on the
|
|
517
|
-
*
|
|
518
|
-
*
|
|
525
|
+
* The schema's buckets on the stack: the line naming those the service did not take, or null when it
|
|
526
|
+
* took them all. Each caller decides what that means: dev and `compose up` carry on and warn
|
|
527
|
+
* ({@link warnBucketsLeft}), a push ends non-zero (0.9.1 release test FF2).
|
|
519
528
|
*/
|
|
520
529
|
async function provisionDockerStorageBuckets(ast, kongPort, serviceRoleKey) {
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
console.warn(`[supatype] ⚠ ${left}; uploads to them fail until a later push takes them.`);
|
|
530
|
+
const storageApi = `${loopbackBase(kongPort)}/storage/v1`;
|
|
531
|
+
return unprovisionedBuckets(await provisionBucketsFromAst(ast, storageApi, serviceRoleKey, { storageLogs: STORAGE_LOGS }));
|
|
524
532
|
}
|
|
533
|
+
/** The command that shows the storage container's log, named when it is not answering (N-FF11). */
|
|
534
|
+
const STORAGE_LOGS = "supatype self-host compose logs --service storage";
|
|
525
535
|
let _lastPushedAst = null;
|
|
526
536
|
let _lastFailedAst = null;
|
|
527
537
|
/** The schema the last push read, whether it applied, was refused or failed. */
|
|
@@ -828,7 +838,7 @@ async function runComposeSchemaPushQueued(cwd, config, paths, schemaPath, compos
|
|
|
828
838
|
export async function followRecordedTier(cwd, config, opts) {
|
|
829
839
|
if (usesExternalDatabase(config))
|
|
830
840
|
return;
|
|
831
|
-
const project =
|
|
841
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
832
842
|
const paths = selfHostComposePaths(cwd);
|
|
833
843
|
const served = composeFieldMaskingTier(cwd, config);
|
|
834
844
|
const recorded = await recordDatabaseTier(cwd, { project, composePath: paths.composePath });
|
|
@@ -869,11 +879,11 @@ async function runDevSchemaPush(cwd, config, paths, schemaPath, composeProject,
|
|
|
869
879
|
* may be renames. Reads the AST the push wrote, so it is the schema that was refused.
|
|
870
880
|
*/
|
|
871
881
|
export async function dockerDiff(cwd, config) {
|
|
882
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
872
883
|
if (hasEngineOverride(config)) {
|
|
873
884
|
const ast = JSON.parse(readFileSync(join(cwd, ".supatype", "schema.ast.json"), "utf8"));
|
|
874
885
|
return engineRequest("/diff", { ast, database_url: projectDatabaseUrl(cwd, config), schema: pgSchema(config) }, isDiffResult);
|
|
875
886
|
}
|
|
876
|
-
const project = composeProjectName(config.project.name);
|
|
877
887
|
const result = await runComposeEngineDiff(selfHostComposePaths(cwd), cwd, project, config);
|
|
878
888
|
return result.diff ?? undefined;
|
|
879
889
|
}
|
|
@@ -907,11 +917,12 @@ async function runComposeEnginePush(paths, cwd, composeProject, config, sources,
|
|
|
907
917
|
export async function dockerEngineCapabilities(cwd, config) {
|
|
908
918
|
if (hasEngineOverride(config))
|
|
909
919
|
return engineCapabilities();
|
|
920
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
910
921
|
const engineImage = await schemaEngineImageForPush(config, cwd);
|
|
911
922
|
// An image Docker could not pull throws with the daemon's sentence, and is asked again next time.
|
|
912
923
|
const probe = () => {
|
|
913
924
|
const paths = writeSelfHostCompose(cwd, config, composeRenderOptions(cwd, config.project.name));
|
|
914
|
-
const target = { cwd, project
|
|
925
|
+
const target = { cwd, project, composePath: paths.composePath, engineImage };
|
|
915
926
|
return checkedCapabilities((args) => {
|
|
916
927
|
const run = spawnComposeEngineSync(target, args, { runFlags: ["--no-deps"] });
|
|
917
928
|
return { status: run.status, stdout: run.stdout, stderr: run.error ?? run.stderr };
|
|
@@ -1032,7 +1043,7 @@ export function dockerAdoptionSteps(cwd, config) {
|
|
|
1032
1043
|
* which it is whenever a push has just been refused by it.
|
|
1033
1044
|
*/
|
|
1034
1045
|
export async function adoptSchemaDocker(cwd, config, yes, keys) {
|
|
1035
|
-
const project =
|
|
1046
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
1036
1047
|
// Only these conflicts, or none for an empty list: never sent to an engine that would read
|
|
1037
1048
|
// either as "every conflict".
|
|
1038
1049
|
if (keys !== undefined)
|
|
@@ -1070,7 +1081,7 @@ export async function diffSchemaDocker(cwd, config) {
|
|
|
1070
1081
|
if (resolveRuntimeProvider(config) !== "docker") {
|
|
1071
1082
|
throw new Error("diffSchemaDocker requires provider: docker");
|
|
1072
1083
|
}
|
|
1073
|
-
const project =
|
|
1084
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
1074
1085
|
if (hasEngineOverride(config)) {
|
|
1075
1086
|
ensureDockerDbPublishedForHostEngine(cwd, config, "diff");
|
|
1076
1087
|
return diffWithHostEngine(cwd, config);
|
|
@@ -1139,7 +1150,7 @@ export async function pushSchemaDocker(cwd, config, opts = {}) {
|
|
|
1139
1150
|
if (resolveRuntimeProvider(config) !== "docker") {
|
|
1140
1151
|
throw new Error("pushSchemaDocker requires provider: docker");
|
|
1141
1152
|
}
|
|
1142
|
-
const project =
|
|
1153
|
+
const project = enterLocalStack(cwd, config.project.name);
|
|
1143
1154
|
const running = pushStackMode(cwd, config);
|
|
1144
1155
|
const mode = running ?? "standalone";
|
|
1145
1156
|
const kongPort = await resolveKongPort(cwd, project);
|
|
@@ -1156,9 +1167,9 @@ export async function pushSchemaDocker(cwd, config, opts = {}) {
|
|
|
1156
1167
|
await followRecordedTier(cwd, config, { recreate: false });
|
|
1157
1168
|
if (running === undefined) {
|
|
1158
1169
|
console.log("[supatype] Schema pushed. The local stack isn't running, so nothing else was started.");
|
|
1159
|
-
return;
|
|
1170
|
+
return false;
|
|
1160
1171
|
}
|
|
1161
|
-
|
|
1172
|
+
return bringUpAfterApply(() => bringPushedStackUp(cwd, config, stack, ast, devApiKeys(cwd)));
|
|
1162
1173
|
}
|
|
1163
1174
|
/**
|
|
1164
1175
|
* The mode of the stack a push goes to, or undefined for an external database with no stack
|
|
@@ -1174,17 +1185,20 @@ function pushStackMode(cwd, config) {
|
|
|
1174
1185
|
}
|
|
1175
1186
|
/**
|
|
1176
1187
|
* What a push does on a running stack after it applied: `up -d` for what the schema changed, then
|
|
1177
|
-
* the buckets, the first admin and the REST wait.
|
|
1178
|
-
*
|
|
1188
|
+
* the buckets, the first admin and the REST wait. `bringUp` answers with the buckets the stack did
|
|
1189
|
+
* not take, or null. The schema is in by then and stays in (issue 41), but a step that failed ends
|
|
1190
|
+
* the push non-zero with no success line, as a push to a linked server does: it was warned about
|
|
1191
|
+
* and exited 0, so a pipeline passed with buckets missing (0.9.1 release test FF2, issue 301).
|
|
1192
|
+
* True when a step failed.
|
|
1179
1193
|
*/
|
|
1180
1194
|
async function bringUpAfterApply(bringUp) {
|
|
1181
|
-
|
|
1182
|
-
|
|
1195
|
+
const failure = await bringUp().catch((err) => `a step after it failed: ${errorMessage(err)}`);
|
|
1196
|
+
if (failure === null) {
|
|
1183
1197
|
console.log("[supatype] Schema pushed.");
|
|
1198
|
+
return false;
|
|
1184
1199
|
}
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}
|
|
1200
|
+
postApplyFailed(failure);
|
|
1201
|
+
return true;
|
|
1188
1202
|
}
|
|
1189
1203
|
/**
|
|
1190
1204
|
* The host port the stack's gateway answers plain HTTP on. A standalone stack with TLS publishes
|
|
@@ -1202,7 +1216,8 @@ export class StackNotServing extends Error {
|
|
|
1202
1216
|
* What a started stack needs once it answers: the gateway and storage waited for, then the schema's
|
|
1203
1217
|
* declared buckets and the first admin user. A push to a running stack runs it after its `up -d`,
|
|
1204
1218
|
* and `self-host compose up` after its own, so no command depends on a push to start the stack and
|
|
1205
|
-
* create them (issue 41).
|
|
1219
|
+
* create them (issue 41). Answers with the buckets the stack did not take, or null, for the caller
|
|
1220
|
+
* to warn about or fail on.
|
|
1206
1221
|
*/
|
|
1207
1222
|
export async function provisionStartedStack(cwd, config, stack, ast, serviceRoleKey) {
|
|
1208
1223
|
const { composePath, project, gatewayPort } = stack;
|
|
@@ -1213,12 +1228,14 @@ export async function provisionStartedStack(cwd, config, stack, ast, serviceRole
|
|
|
1213
1228
|
throw new StackNotServing(errorMessage(err), { cause: err });
|
|
1214
1229
|
}
|
|
1215
1230
|
await waitStorageApiReady(gatewayPort, serviceRoleKey, 90);
|
|
1216
|
-
await provisionDockerStorageBuckets(ast, gatewayPort, serviceRoleKey);
|
|
1231
|
+
const left = await provisionDockerStorageBuckets(ast, gatewayPort, serviceRoleKey);
|
|
1217
1232
|
await ensureFirstAdminUserForProject(cwd, config, { compose: { project, composePath } });
|
|
1233
|
+
return left;
|
|
1218
1234
|
}
|
|
1219
1235
|
/**
|
|
1220
1236
|
* After a compose push: the rest of the stack up, then what the schema asks of it once it answers
|
|
1221
|
-
* (buckets, the first admin), then REST, which is the last to catch up with the new schema.
|
|
1237
|
+
* (buckets, the first admin), then REST, which is the last to catch up with the new schema. Answers
|
|
1238
|
+
* with the buckets the stack did not take, or null.
|
|
1222
1239
|
*/
|
|
1223
1240
|
async function bringPushedStackUp(cwd, config, stack, ast, keys) {
|
|
1224
1241
|
const { paths, project, gatewayPort, brand } = stack;
|
|
@@ -1226,10 +1243,11 @@ async function bringPushedStackUp(cwd, config, stack, ast, keys) {
|
|
|
1226
1243
|
// Thrown, not exited: the schema is applied by now (bringUpAfterApply).
|
|
1227
1244
|
if (upGateway !== 0)
|
|
1228
1245
|
throw new Error(`docker compose up exited with status ${upGateway}`);
|
|
1229
|
-
await provisionStartedStack(cwd, config, { composePath: paths.composePath, project, gatewayPort }, ast, keys.serviceRoleKey);
|
|
1246
|
+
const left = await provisionStartedStack(cwd, config, { composePath: paths.composePath, project, gatewayPort }, ast, keys.serviceRoleKey);
|
|
1230
1247
|
// Last, so the admin user and the buckets are not held up by it. `supatype dev` never comes
|
|
1231
1248
|
// through here: it pushes before PostgREST starts, so PostgREST finds the schemas on its first try.
|
|
1232
1249
|
await waitForRestReady(loopbackBase(gatewayPort), keys.anonKey);
|
|
1250
|
+
return left;
|
|
1233
1251
|
}
|
|
1234
1252
|
/**
|
|
1235
1253
|
* The first push of a `dev` session. A retry only ever brings Postgres back up: it never removes
|
|
@@ -1303,6 +1321,9 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
1303
1321
|
// Per-project compose name + port isolate this project from any other Supatype
|
|
1304
1322
|
// stack on the machine (own containers, volumes, network, and gateway port).
|
|
1305
1323
|
const project = composeProjectName(config.project.name);
|
|
1324
|
+
// Before anything is rendered or started: the stack of that name may be another folder's (RB-2).
|
|
1325
|
+
refuseOtherFoldersStack(cwd, project);
|
|
1326
|
+
recordStackFolder(cwd, project);
|
|
1306
1327
|
const kongPort = await resolveKongPort(cwd, project);
|
|
1307
1328
|
// No dev db port for an external database: `ensureDevDbPort` allocates a host port for the `db`
|
|
1308
1329
|
// container *and persists a matching DATABASE_URL*, which overwrote the operator's own URL, the
|
|
@@ -1312,10 +1333,14 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
1312
1333
|
// with a database on 54329 and a URL still saying 5432.
|
|
1313
1334
|
// Only dev moves the port off something else that holds it.
|
|
1314
1335
|
const devDbPort = await devStackDbPort(cwd, config, project);
|
|
1336
|
+
// Before .env is written and handed to compose: a SUPATYPE_MAILER_AUTOCONFIRM an earlier CLI wrote
|
|
1337
|
+
// there would otherwise win over the config as if the developer had set it (FF7).
|
|
1338
|
+
retireCliMailerAutoconfirm(cwd);
|
|
1315
1339
|
const { anonKey, serviceRoleKey } = devApiKeys(cwd);
|
|
1316
1340
|
const devBrand = { intro: "Local development" };
|
|
1317
1341
|
const localServerImage = await ensureLocalServerDockerImage(cwd, config, devBrand);
|
|
1318
|
-
|
|
1342
|
+
// Recorded in the session's lock, so a later command from another shell runs this stack as it runs.
|
|
1343
|
+
const runEnv = ensureDevComposeEnv(cwd, config, anonKey, serviceRoleKey, kongPort, devDbPort);
|
|
1319
1344
|
warnMissingStackSettings(cwd, config);
|
|
1320
1345
|
console.log(`[supatype] provider docker, starting self-host Compose stack (project ${project}, gateway :${kongPort})...`);
|
|
1321
1346
|
await showDevStep("Preparing the Docker stack");
|
|
@@ -1330,9 +1355,12 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
1330
1355
|
schemaWatcher: null,
|
|
1331
1356
|
functionsWatcher: null,
|
|
1332
1357
|
};
|
|
1358
|
+
// As the start begins, so the stack comes down however dev ends. Until the start is done a Ctrl+C
|
|
1359
|
+
// is a stopped start, as on native dev (FF11).
|
|
1333
1360
|
registerDevShutdown(() => stopDevComposeStack(shutdownState, { project, composePath: paths.composePath }, cwd), {
|
|
1334
1361
|
cwd,
|
|
1335
1362
|
compose: { cwd, composePath: paths.composePath, composeProject: project },
|
|
1363
|
+
duringStart: true,
|
|
1336
1364
|
});
|
|
1337
1365
|
await recoverStaleDevSession(cwd);
|
|
1338
1366
|
await handleComposeProjectRename(cwd, projectNameInFile(config), paths);
|
|
@@ -1435,14 +1463,21 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
1435
1463
|
kongPort,
|
|
1436
1464
|
provider: "docker",
|
|
1437
1465
|
});
|
|
1438
|
-
writeDevSessionLock(cwd, devSessionLockFor(config, {
|
|
1466
|
+
writeDevSessionLock(cwd, devSessionLockFor(config, {
|
|
1467
|
+
provider: "docker",
|
|
1468
|
+
composeProject: project,
|
|
1469
|
+
composePath: paths.composePath,
|
|
1470
|
+
kongPort,
|
|
1471
|
+
...(devDbPort !== undefined && { dbPort: devDbPort }),
|
|
1472
|
+
runEnv,
|
|
1473
|
+
}));
|
|
1439
1474
|
// Only for a schema the database took, as a save does: a refused one may not even load, and its
|
|
1440
1475
|
// buckets belong to fields that do not exist yet. The save that applies it provisions them.
|
|
1441
1476
|
if (schemaApplied) {
|
|
1442
1477
|
const ast = withPublishing(loadSchemaAst(schemaPath, cwd), config);
|
|
1443
|
-
await provisionDockerStorageBuckets(ast, kongPort, serviceRoleKey);
|
|
1478
|
+
warnBucketsLeft(await provisionDockerStorageBuckets(ast, kongPort, serviceRoleKey));
|
|
1444
1479
|
}
|
|
1445
|
-
const pidDir = join(
|
|
1480
|
+
const pidDir = join(nativeStateRoot(config), "pid");
|
|
1446
1481
|
mkdirSync(pidDir, { recursive: true });
|
|
1447
1482
|
startDevSession();
|
|
1448
1483
|
let studioProc = null;
|
|
@@ -1470,15 +1505,14 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
1470
1505
|
{ label: "Storage", url: `http://localhost:${kongPort}/storage/v1/` },
|
|
1471
1506
|
{ label: "Realtime", url: `ws://localhost:${kongPort}/realtime/v1/` },
|
|
1472
1507
|
];
|
|
1473
|
-
|
|
1474
|
-
links.push({ label: "App", url: `http://localhost:${kongPort}/` });
|
|
1475
|
-
}
|
|
1508
|
+
links.push(...appPanelLinks(config, `http://localhost:${kongPort}`));
|
|
1476
1509
|
links.push({ label: "Studio", url: studioUrlAt(`http://localhost:${kongPort}`) });
|
|
1477
1510
|
const hints = [];
|
|
1478
1511
|
const demoData = demoDataHint(cwd);
|
|
1479
1512
|
if (demoData !== undefined)
|
|
1480
1513
|
hints.push(demoData);
|
|
1481
1514
|
publishDevReady({
|
|
1515
|
+
cwd,
|
|
1482
1516
|
title: `Services running (Docker · ${project})`,
|
|
1483
1517
|
links,
|
|
1484
1518
|
anonKey,
|
|
@@ -1499,7 +1533,7 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
1499
1533
|
console.log(`\n[supatype] ${why}, pushing schema...`);
|
|
1500
1534
|
try {
|
|
1501
1535
|
await runComposeSchemaPushQueued(cwd, config, paths, schemaPath, project, pushOptions);
|
|
1502
|
-
await provisionDockerStorageBuckets(loadSchemaAst(schemaPath, cwd), kongPort, serviceRoleKey);
|
|
1536
|
+
warnBucketsLeft(await provisionDockerStorageBuckets(loadSchemaAst(schemaPath, cwd), kongPort, serviceRoleKey));
|
|
1503
1537
|
}
|
|
1504
1538
|
catch (err) {
|
|
1505
1539
|
reportDevPushFailure(err);
|