mirror of
https://github.com/louislam/dockge.git
synced 2026-05-21 14:02:17 +00:00
npm audit fixes, eslint fixes, console warning v-html directive xss vulnerabilty warning fix, and code optimizations
This commit is contained in:
@@ -553,7 +553,7 @@ export class Stack {
|
||||
|
||||
async startService(socket: DockgeSocket, serviceName: string) {
|
||||
const terminalName = getComposeTerminalName(socket.endpoint, this.name);
|
||||
const exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", ["compose", "up", "-d", serviceName], this.path);
|
||||
const exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "up", "-d", serviceName ], this.path);
|
||||
if (exitCode !== 0) {
|
||||
throw new Error(`Failed to start service ${serviceName}, please check logs for more information.`);
|
||||
}
|
||||
@@ -563,7 +563,7 @@ export class Stack {
|
||||
|
||||
async stopService(socket: DockgeSocket, serviceName: string): Promise<number> {
|
||||
const terminalName = getComposeTerminalName(socket.endpoint, this.name);
|
||||
const exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", ["compose", "stop", serviceName], this.path);
|
||||
const exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "stop", serviceName ], this.path);
|
||||
if (exitCode !== 0) {
|
||||
throw new Error(`Failed to stop service ${serviceName}, please check logs for more information.`);
|
||||
}
|
||||
@@ -573,7 +573,7 @@ export class Stack {
|
||||
|
||||
async restartService(socket: DockgeSocket, serviceName: string): Promise<number> {
|
||||
const terminalName = getComposeTerminalName(socket.endpoint, this.name);
|
||||
const exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", ["compose", "restart", serviceName], this.path);
|
||||
const exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "restart", serviceName ], this.path);
|
||||
if (exitCode !== 0) {
|
||||
throw new Error(`Failed to restart service ${serviceName}, please check logs for more information.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user