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:
parent
72bceec62d
commit
a642d36a23
@ -1,5 +1,5 @@
|
||||
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 { execAsync } from "../process/execAsync";
|
||||
|
||||
@ -8,6 +8,9 @@ class LogRotationManager {
|
||||
private stream: RotatingFileStream | null = null;
|
||||
|
||||
private constructor() {
|
||||
if (IS_CLOUD) {
|
||||
return;
|
||||
}
|
||||
this.initialize().catch(console.error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user