fix: Do not run SSL renew in development
This commit is contained in:
parent
4046c472ed
commit
eccd7c96d7
@ -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');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user