service credentials
This commit is contained in:
@@ -31,6 +31,7 @@ class Caddy2Driver extends GatewayDriver
|
||||
$script->push('cd services');
|
||||
$script->push("test -d {$this->service->id} || mkdir {$this->service->id}");
|
||||
$script->push("cd {$this->service->id}");
|
||||
return $script->join("\n");
|
||||
}
|
||||
),
|
||||
new Step(
|
||||
@@ -49,7 +50,9 @@ class Caddy2Driver extends GatewayDriver
|
||||
}
|
||||
$runCommand .= ' -p 80:80 -p 443:443 caddy:2';
|
||||
|
||||
return $runCommand;
|
||||
$script->push($runCommand);
|
||||
|
||||
return $script->join("\n");
|
||||
}
|
||||
),
|
||||
]);
|
||||
|
||||
@@ -18,6 +18,6 @@ abstract class Driver
|
||||
abstract public function __construct(
|
||||
?string $containerName = null,
|
||||
?string $containerId = null,
|
||||
?int $service = null,
|
||||
?Service $service = null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ abstract class GatewayDriver extends Driver
|
||||
?string $containerId = null,
|
||||
?Service $service = null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user