@stacksjs/ts-cloud 0.7.124 → 0.7.126
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/bin/cli.js +246 -246
- package/dist/bin/dashboard-server.js +87 -87
- package/dist/{chunk-vn6g8f60.js → chunk-9qyr2jza.js} +1 -1
- package/dist/{chunk-4q7jx76n.js → chunk-qeyq47dx.js} +6 -3
- package/dist/deploy/dns-credentials-scope.test.d.ts +1 -0
- package/dist/deploy/index.js +2 -2
- package/dist/drivers/index.js +1 -1
- package/dist/drivers/shared/deploy-script.d.ts +16 -0
- package/dist/index.js +2 -2
- package/dist/ui/account/automation.html +4 -4
- package/dist/ui/account/security.html +2 -2
- package/dist/ui/applications/compose.html +4 -4
- package/dist/ui/applications/new.html +2 -2
- package/dist/ui/data/backups.html +4 -4
- package/dist/ui/data/services.html +4 -4
- package/dist/ui/data/volumes.html +4 -4
- package/dist/ui/index.html +3 -3
- package/dist/ui/infrastructure/topology.html +4 -4
- package/dist/ui/integrations.html +2 -2
- package/dist/ui/operations/alerts.html +4 -4
- package/dist/ui/operations/configuration.html +4 -4
- package/dist/ui/operations/jobs.html +4 -4
- package/dist/ui/operations/maintenance.html +4 -4
- package/dist/ui/operations/observability.html +4 -4
- package/dist/ui/operations/previews.html +4 -4
- package/dist/ui/operations/queue.html +4 -4
- package/dist/ui/operations/regions.html +4 -4
- package/dist/ui/operations/releases.html +3 -3
- package/dist/ui/operations/spend.html +4 -4
- package/dist/ui/operations/workloads.html +4 -4
- package/dist/ui/security.html +2 -2
- package/dist/ui/server/actions.html +3 -3
- package/dist/ui/server/capacity.html +3 -3
- package/dist/ui/server/database.html +4 -4
- package/dist/ui/server/deployments.html +3 -3
- package/dist/ui/server/firewall.html +3 -3
- package/dist/ui/server/fleet.html +4 -4
- package/dist/ui/server/logs.html +4 -4
- package/dist/ui/server/metrics.html +4 -4
- package/dist/ui/server/security.html +2 -2
- package/dist/ui/server/services.html +2 -2
- package/dist/ui/server/sites.html +4 -4
- package/dist/ui/server/ssh-keys.html +4 -4
- package/dist/ui/server/team.html +4 -4
- package/dist/ui/server/terminal.html +2 -2
- package/dist/ui/serverless/alarms.html +4 -4
- package/dist/ui/serverless/assets.html +2 -2
- package/dist/ui/serverless/data.html +4 -4
- package/dist/ui/serverless/deployments.html +2 -2
- package/dist/ui/serverless/firewall.html +2 -2
- package/dist/ui/serverless/functions.html +4 -4
- package/dist/ui/serverless/logs.html +4 -4
- package/dist/ui/serverless/metrics.html +2 -2
- package/dist/ui/serverless/queues.html +4 -4
- package/dist/ui/serverless/secrets.html +4 -4
- package/dist/ui/serverless/traces.html +4 -4
- package/dist/ui/serverless.html +4 -4
- package/package.json +3 -3
|
@@ -5659,12 +5659,14 @@ function buildSiteDeployScript(options) {
|
|
|
5659
5659
|
memoryMax,
|
|
5660
5660
|
cpuWeight,
|
|
5661
5661
|
ioWeight,
|
|
5662
|
-
tasksMax
|
|
5662
|
+
tasksMax,
|
|
5663
|
+
stopTimeout
|
|
5663
5664
|
} = options;
|
|
5664
5665
|
const qosDirectives = [
|
|
5665
5666
|
...cpuWeight != null ? [`CPUWeight=${cpuWeight}`] : [],
|
|
5666
5667
|
...ioWeight != null ? [`IOWeight=${ioWeight}`] : [],
|
|
5667
|
-
...tasksMax != null ? [`TasksMax=${tasksMax}`] : []
|
|
5668
|
+
...tasksMax != null ? [`TasksMax=${tasksMax}`] : [],
|
|
5669
|
+
...stopTimeout ? [`TimeoutStopSec=${stopTimeout}`] : []
|
|
5668
5670
|
];
|
|
5669
5671
|
const zeroDowntime = options.zeroDowntime ?? port != null;
|
|
5670
5672
|
const base = options.appDir ?? `/var/www/${siteName}`;
|
|
@@ -6709,7 +6711,8 @@ async function deploySiteRelease(driver, options, logger = noopLogger2) {
|
|
|
6709
6711
|
memoryMax: site.memoryMax,
|
|
6710
6712
|
cpuWeight: site.cpuWeight,
|
|
6711
6713
|
ioWeight: site.ioWeight,
|
|
6712
|
-
tasksMax: site.tasksMax
|
|
6714
|
+
tasksMax: site.tasksMax,
|
|
6715
|
+
stopTimeout: site.stopTimeout
|
|
6713
6716
|
});
|
|
6714
6717
|
const wantsNginxStatic = kind === "server-static" && !usesRpxProxy(compute) && !!site.domain;
|
|
6715
6718
|
const staticVhost = wantsNginxStatic ? buildNginxVhostScript({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/deploy/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
synchronizeDashboardUsers,
|
|
37
37
|
trackDashboardOperation,
|
|
38
38
|
verifyStaticApiOrigin
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-9qyr2jza.js";
|
|
40
40
|
import {
|
|
41
41
|
deleteStaticSite,
|
|
42
42
|
deployStaticSite,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
siteInstallBase,
|
|
84
84
|
validateDeploymentConfig,
|
|
85
85
|
verifyAddressRecord
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-qeyq47dx.js";
|
|
87
87
|
import"../chunk-7m60qnc8.js";
|
|
88
88
|
import"../chunk-4cjrg98a.js";
|
|
89
89
|
import"../chunk-rds0sy87.js";
|
package/dist/drivers/index.js
CHANGED
|
@@ -99,6 +99,22 @@ export interface BuildSiteDeployScriptOptions {
|
|
|
99
99
|
ioWeight?: number;
|
|
100
100
|
/** systemd `TasksMax` — cap on threads/processes. Unset by default. */
|
|
101
101
|
tasksMax?: number;
|
|
102
|
+
/**
|
|
103
|
+
* systemd `TimeoutStopSec` — how long a unit may take to shut down before
|
|
104
|
+
* systemd escalates from SIGTERM to SIGKILL.
|
|
105
|
+
*
|
|
106
|
+
* Worth raising for a worker that drains on SIGTERM. systemd's default is 90
|
|
107
|
+
* seconds, which is generous for a server and far too short for a job that
|
|
108
|
+
* finishes the shard in its hands before letting go: it gets killed
|
|
109
|
+
* mid-write instead, which is precisely the outcome the drain exists to
|
|
110
|
+
* avoid. A trail-ingest worker on a shared box was SIGKILLed exactly that
|
|
111
|
+
* way while logging `finishing current shard`.
|
|
112
|
+
*
|
|
113
|
+
* Unset by default — systemd's own default is right for anything that can
|
|
114
|
+
* stop immediately, and a long stop timeout on a service that hangs is a
|
|
115
|
+
* deploy that waits for it.
|
|
116
|
+
*/
|
|
117
|
+
stopTimeout?: string;
|
|
102
118
|
}
|
|
103
119
|
/**
|
|
104
120
|
* Build the remote shell commands that install/refresh a server-app site on a
|
package/dist/index.js
CHANGED
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
verifyUpdateSignature,
|
|
209
209
|
webhookEndpoint,
|
|
210
210
|
zeroCapacity
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-9qyr2jza.js";
|
|
212
212
|
import {
|
|
213
213
|
deleteStaticSite,
|
|
214
214
|
deployStaticSite,
|
|
@@ -341,7 +341,7 @@ import {
|
|
|
341
341
|
waitForCloudInit,
|
|
342
342
|
waitForSsh,
|
|
343
343
|
wrapCloudInitUserData
|
|
344
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-qeyq47dx.js";
|
|
345
345
|
import {
|
|
346
346
|
EC2Client,
|
|
347
347
|
SSMClient
|