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> { export async function renewSSLCerts(): Promise<void> {
if (!dev) {
const host = 'unix:///var/run/docker.sock'; const host = 'unix:///var/run/docker.sock';
await asyncExecShell(`docker pull alpine:latest`); await asyncExecShell(`docker pull alpine:latest`);
const certbotImage = const certbotImage =
@ -315,3 +316,4 @@ export async function renewSSLCerts(): Promise<void> {
} }
await reloadHaproxy('unix:///var/run/docker.sock'); await reloadHaproxy('unix:///var/run/docker.sock');
} }
}