mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
updates for templates
This commit is contained in:
@@ -185,14 +185,14 @@ const host = '0.0.0.0';
|
||||
await checkFluentBit();
|
||||
}, 60000);
|
||||
|
||||
// // Refresh and check templates
|
||||
// setInterval(async () => {
|
||||
// await refreshTemplates();
|
||||
// }, 60000 * 10);
|
||||
// Refresh and check templates
|
||||
setInterval(async () => {
|
||||
await refreshTemplates();
|
||||
}, 60000 * 10);
|
||||
|
||||
// setInterval(async () => {
|
||||
// await refreshTags();
|
||||
// }, 60000 * 10);
|
||||
setInterval(async () => {
|
||||
await refreshTags();
|
||||
}, 60000 * 10);
|
||||
|
||||
setInterval(
|
||||
async () => {
|
||||
@@ -209,7 +209,9 @@ const host = '0.0.0.0';
|
||||
getTagsTemplates(),
|
||||
getArch(),
|
||||
getIPAddress(),
|
||||
configureRemoteDockers()
|
||||
configureRemoteDockers(),
|
||||
refreshTemplates(),
|
||||
refreshTags()
|
||||
// cleanupStuckedContainers()
|
||||
]);
|
||||
} catch (error) {
|
||||
|
||||
@@ -392,13 +392,6 @@ export async function getService(request: FastifyRequest<OnlyId>) {
|
||||
}
|
||||
export async function getServiceType(request: FastifyRequest) {
|
||||
try {
|
||||
try {
|
||||
await refreshTemplates();
|
||||
await refreshTags();
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
return {
|
||||
services: await getTemplates()
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user