mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: hide handler when is cloud version
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { findAdmin, updateAdmin } from "@/server/services/admin";
|
import { findAdmin, updateAdmin } from "@/server/services/admin";
|
||||||
import { paths } from "@/server/constants";
|
import { IS_CLOUD, paths } from "@/server/constants";
|
||||||
import { type RotatingFileStream, createStream } from "rotating-file-stream";
|
import { type RotatingFileStream, createStream } from "rotating-file-stream";
|
||||||
import { execAsync } from "../process/execAsync";
|
import { execAsync } from "../process/execAsync";
|
||||||
|
|
||||||
@@ -8,6 +8,9 @@ class LogRotationManager {
|
|||||||
private stream: RotatingFileStream | null = null;
|
private stream: RotatingFileStream | null = null;
|
||||||
|
|
||||||
private constructor() {
|
private constructor() {
|
||||||
|
if (IS_CLOUD) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.initialize().catch(console.error);
|
this.initialize().catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user