Skip to content

Commit c53faea

Browse files
committed
Improve configuration for Docker
1 parent 9438fc0 commit c53faea

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

build/auctionx-worker

27 Bytes
Binary file not shown.

src/Worker/Helper/ConfigurationHelper.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public static function writeConfiguration(
2424

2525
$fileName = self::getFileName();
2626

27+
if (!is_dir(self::getConfigFolder())) {
28+
mkdir(self::getConfigFolder());
29+
}
30+
2731
$handle = fopen($fileName, 'w+');
2832

2933
if ($handle) {
@@ -77,4 +81,9 @@ public static function getFileName(): string
7781
return getenv('HOME') ? getenv('HOME') . '/.auctionx/worker' : './.auctionx/worker';
7882
}
7983

84+
public static function getConfigFolder(): string
85+
{
86+
return getenv('HOME') ? getenv('HOME') . '/.auctionx' : './.auctionx';
87+
}
88+
8089
}

0 commit comments

Comments
 (0)