fix: Do not run SSL renew in development

This commit is contained in:
Andras Bacsai 2022-05-05 13:31:36 +02:00
parent 4046c472ed
commit eccd7c96d7

View File

@ -292,6 +292,7 @@ export async function generateSSLCerts(): Promise<void> {
}
export async function renewSSLCerts(): Promise<void> {
if (!dev) {
const host = 'unix:///var/run/docker.sock';
await asyncExecShell(`docker pull alpine:latest`);
const certbotImage =
@ -314,4 +315,5 @@ export async function renewSSLCerts(): Promise<void> {
}
}
await reloadHaproxy('unix:///var/run/docker.sock');
}
}