mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-10-15 05:11:26 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -223,8 +223,9 @@ PORT=3000
|
||||
<FormDescription>
|
||||
When enabled, an .env file will be created in the same
|
||||
directory as your compose file on every deploy.
|
||||
Disable this if you don't want to generate an
|
||||
environment file.
|
||||
Disable this to keep a repository-provided .env; the
|
||||
variables above will then be ignored. Takes effect on
|
||||
the next deploy.
|
||||
</FormDescription>
|
||||
</div>
|
||||
<FormControl>
|
||||
|
||||
@@ -24,9 +24,10 @@ export const isDockerDesktop = async () => {
|
||||
/** Returns the Docker host IP address. */
|
||||
export const getDockerHost = async (): Promise<string> => {
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
const isLinux = process.platform === "linux"
|
||||
? (await Promise.all([isWSL(), isDockerDesktop()])).every((v) => !v)
|
||||
: false;
|
||||
const isLinux =
|
||||
process.platform === "linux"
|
||||
? (await Promise.all([isWSL(), isDockerDesktop()])).every((v) => !v)
|
||||
: false;
|
||||
|
||||
if (isLinux) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user