mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -206,7 +206,7 @@ export const applications = pgTable("application", {
|
|||||||
buildType: buildType("buildType").notNull().default("nixpacks"),
|
buildType: buildType("buildType").notNull().default("nixpacks"),
|
||||||
herokuVersion: text("herokuVersion").default("24"),
|
herokuVersion: text("herokuVersion").default("24"),
|
||||||
publishDirectory: text("publishDirectory"),
|
publishDirectory: text("publishDirectory"),
|
||||||
isStaticSpa: boolean('isStaticSpa'),
|
isStaticSpa: boolean("isStaticSpa"),
|
||||||
createdAt: text("createdAt")
|
createdAt: text("createdAt")
|
||||||
.notNull()
|
.notNull()
|
||||||
.$defaultFn(() => new Date().toISOString()),
|
.$defaultFn(() => new Date().toISOString()),
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`;
|
||||||
|
|
||||||
export const buildStatic = async (
|
export const buildStatic = async (
|
||||||
application: ApplicationNested,
|
application: ApplicationNested,
|
||||||
@@ -41,11 +41,7 @@ export const buildStatic = async (
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (isStaticSpa) {
|
if (isStaticSpa) {
|
||||||
createFile(
|
createFile(buildAppDirectory, "nginx.conf", nginxSpaConfig);
|
||||||
buildAppDirectory,
|
|
||||||
"nginx.conf",
|
|
||||||
nginxSpaConfig,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createFile(
|
createFile(
|
||||||
@@ -60,9 +56,9 @@ export const buildStatic = async (
|
|||||||
[
|
[
|
||||||
"FROM nginx:alpine",
|
"FROM nginx:alpine",
|
||||||
"WORKDIR /usr/share/nginx/html/",
|
"WORKDIR /usr/share/nginx/html/",
|
||||||
isStaticSpa ? 'COPY nginx.conf /etc/nginx/nginx.conf' : '',
|
isStaticSpa ? "COPY nginx.conf /etc/nginx/nginx.conf" : "",
|
||||||
`COPY ${publishDirectory || "."} .`,
|
`COPY ${publishDirectory || "."} .`,
|
||||||
'CMD ["nginx", "-g", "daemon off;"]'
|
'CMD ["nginx", "-g", "daemon off;"]',
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user