Skip to content

Commit c1d452b

Browse files
CopilotSiumauricio
andcommitted
Complete fix for Stack compose environment variable substitution
Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com>
1 parent f39b511 commit c1d452b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

apps/dokploy/__test__/env/stack-environment.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ PASSWORD=secret123
7272
DATABASE_URL=postgresql://\${{environment.USERNAME}}:\${{environment.PASSWORD}}@\${{environment.HOST}}:\${{environment.PORT}}/mydb
7373
`;
7474

75-
const result = getEnviromentVariablesObject(
76-
serviceEnv,
77-
"",
78-
multiRefEnv,
79-
);
75+
const result = getEnviromentVariablesObject(serviceEnv, "", multiRefEnv);
8076

8177
expect(result).toEqual({
8278
DATABASE_URL: "postgresql://postgres:secret123@localhost:5432/mydb",

apps/dokploy/components/dashboard/application/preview-deployments/show-preview-deployments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
12
import {
23
ExternalLink,
34
FileText,
@@ -29,7 +30,6 @@ import {
2930
TooltipProvider,
3031
TooltipTrigger,
3132
} from "@/components/ui/tooltip";
32-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3333
import { api } from "@/utils/api";
3434
import { ShowModalLogs } from "../../settings/web-server/show-modal-logs";
3535
import { ShowDeploymentsModal } from "../deployments/show-deployments-modal";

0 commit comments

Comments
 (0)