Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@dokploy/server": "workspace:*",
"@hono/node-server": "^1.19.17",
"@hono/node-server": "^2.1.5",
"@hono/zod-validator": "0.9.1",
"dotenv": "^18.0.9",
"hono": "^4.13.13",
Expand All @@ -20,7 +20,6 @@
"pino-pretty": "13.2.0",
"react": "19.3.1",
"react-dom": "19.3.1",
"redis": "4.7.1",
"zod": "^4.6.7"
},
"devDependencies": {
Expand Down
38 changes: 38 additions & 0 deletions apps/dokploy/__test__/process/spawn-async.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { spawnAsync } from "@dokploy/server/utils/process/spawnAsync";
import { describe, expect, it } from "vitest";

describe("spawnAsync", () => {
it("collects stdout across chunks and streams it to onData", async () => {
const chunks: string[] = [];
const result = await spawnAsync(
"sh",
["-c", "printf 'first\\n'; sleep 0.05; printf 'second\\n'"],
(data) => chunks.push(data),
);

expect(result.toString()).toBe("first\nsecond\n");
expect(result.length).toBe(13);
expect(chunks.join("")).toBe("first\nsecond\n");
});

it("passes input to stdin", async () => {
const result = await spawnAsync("cat", [], undefined, { input: "hello" });

expect(result.toString()).toBe("hello");
});

it("rejects with stderr as the message and keeps both streams", async () => {
const error = await spawnAsync("sh", [
"-c",
"printf out; printf 'boom' >&2; exit 4",
])
.then(() => null)
.catch((e) => e);

expect(error).toBeInstanceOf(Error);
expect(error.message).toBe("boom");
expect(error.code).toBe(4);
expect(error.stdout.toString()).toBe("out");
expect(error.stderr.toString()).toBe("boom");
});
});
12 changes: 6 additions & 6 deletions apps/dokploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
"ai-sdk-ollama": "^4.5.1",
"bcrypt": "5.1.1",
"better-auth": "1.7.12",
"bl": "6.1.6",
"boxen": "^7.1.1",
"bl": "7.0.13",
"boxen": "^9.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
Expand Down Expand Up @@ -125,7 +125,7 @@
"pino": "10.4.0",
"pino-pretty": "13.2.0",
"postgres": "3.4.9",
"public-ip": "6.0.2",
"public-ip": "8.0.0",
"qrcode": "^1.5.4",
"radix-ui": "^1.8.1",
"react": "19.3.1",
Expand Down Expand Up @@ -176,14 +176,14 @@
"@types/ws": "8.18.2",
"drizzle-kit": "^0.31.11",
"esbuild": "0.28.2",
"lint-staged": "^15.5.2",
"lint-staged": "^17.6.0",
"memfs": "^4.80.0",
"simple-icons": "^16.36.0",
"tailwindcss": "^4.3.3",
"tsx": "^4.23.15",
"typescript": "^7.0.2",
"vite-tsconfig-paths": "4.3.2",
"vitest": "^4.1.12"
"vite-tsconfig-paths": "6.1.1",
"vitest": "^5.0.5"
},
"ct3aMetadata": {
"initVersion": "7.25.2"
Expand Down
2 changes: 1 addition & 1 deletion apps/schedules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@dokploy/server": "workspace:*",
"@hono/node-server": "^1.19.17",
"@hono/node-server": "^2.1.5",
"@hono/zod-validator": "0.9.1",
"bullmq": "5.81.5",
"dotenv": "^18.0.9",
Expand Down
353 changes: 86 additions & 267 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/node": "^24.19.2",
"dotenv": "18.0.9",
"esbuild": "0.28.2",
"lint-staged": "^15.5.2",
"lint-staged": "^17.6.0",
"node-gyp": "13.1.0",
"tsx": "4.23.15"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"ai-sdk-ollama": "^4.5.1",
"bcrypt": "5.1.1",
"better-auth": "1.7.12",
"bl": "6.1.6",
"boxen": "^7.1.1",
"bl": "7.0.13",
"boxen": "^9.0.0",
"date-fns": "3.6.0",
"dockerode": "5.0.1",
"dotenv": "18.0.9",
Expand All @@ -86,7 +86,7 @@
"pino": "10.4.0",
"pino-pretty": "13.2.0",
"postgres": "3.4.9",
"public-ip": "6.0.2",
"public-ip": "8.0.0",
"qrcode": "^1.5.4",
"react": "19.3.1",
"react-dom": "19.3.1",
Expand Down