mirror of
https://github.com/louislam/dockge.git
synced 2024-11-27 13:14:03 +00:00
Create the env file only if not empty
This commit is contained in:
parent
0df3fee3f4
commit
8053e9940e
1 changed files with 4 additions and 1 deletions
|
@ -167,8 +167,11 @@ export class Stack {
|
|||
|
||||
// Write or overwrite the compose.yaml
|
||||
fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML);
|
||||
|
||||
// Write or overwrite the .env
|
||||
fs.writeFileSync(path.join(dir, ".env"), this.composeENV);
|
||||
if (this.composeENV.trim() !== "") {
|
||||
fs.writeFileSync(path.join(dir, ".env"), this.composeENV);
|
||||
}
|
||||
}
|
||||
|
||||
async deploy(socket? : DockgeSocket) : Promise<number> {
|
||||
|
|
Loading…
Reference in a new issue