fix: create dynamic directory

This commit is contained in:
Andras Bacsai 2024-01-31 15:04:08 +01:00
parent 628fec6904
commit 2b9df41444

View File

@ -27,7 +27,7 @@ public function handle(Server $server, bool $async = true): string|Activity
$server->save();
if ($server->isSwarm()) {
$commands = $commands->merge([
"mkdir -p $proxy_path && cd $proxy_path",
"mkdir -p $proxy_path/dynamic && cd $proxy_path",
"echo 'Creating required Docker Compose file.'",
"echo 'Starting coolify-proxy.'",
"cd $proxy_path && docker stack deploy -c docker-compose.yml coolify-proxy",
@ -35,7 +35,7 @@ public function handle(Server $server, bool $async = true): string|Activity
]);
} else {
$commands = $commands->merge([
"mkdir -p $proxy_path && cd $proxy_path",
"mkdir -p $proxy_path/dynamic && cd $proxy_path",
"echo 'Creating required Docker Compose file.'",
"echo 'Pulling docker image.'",
'docker compose pull',