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