forked from extern/dockge
Create the env file only if not empty
This commit is contained in:
parent
0df3fee3f4
commit
8053e9940e
@ -167,9 +167,12 @@ export class Stack {
|
||||
|
||||
// Write or overwrite the compose.yaml
|
||||
fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML);
|
||||
|
||||
// Write or overwrite the .env
|
||||
if (this.composeENV.trim() !== "") {
|
||||
fs.writeFileSync(path.join(dir, ".env"), this.composeENV);
|
||||
}
|
||||
}
|
||||
|
||||
async deploy(socket? : DockgeSocket) : Promise<number> {
|
||||
const terminalName = getComposeTerminalName(this.name);
|
||||
|
Loading…
Reference in New Issue
Block a user