mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 12:33:06 +00:00
update tags + only download on service view
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -185,14 +185,14 @@ const host = '0.0.0.0';
|
|||||||
await checkFluentBit();
|
await checkFluentBit();
|
||||||
}, 60000);
|
}, 60000);
|
||||||
|
|
||||||
// Refresh and check templates
|
// // Refresh and check templates
|
||||||
setInterval(async () => {
|
// setInterval(async () => {
|
||||||
await refreshTemplates();
|
// await refreshTemplates();
|
||||||
}, 60000 * 10);
|
// }, 60000 * 10);
|
||||||
|
|
||||||
setInterval(async () => {
|
// setInterval(async () => {
|
||||||
await refreshTags();
|
// await refreshTags();
|
||||||
}, 60000 * 10);
|
// }, 60000 * 10);
|
||||||
|
|
||||||
setInterval(
|
setInterval(
|
||||||
async () => {
|
async () => {
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ import type {
|
|||||||
SetWordpressSettings
|
SetWordpressSettings
|
||||||
} from './types';
|
} from './types';
|
||||||
import type { OnlyId } from '../../../../types';
|
import type { OnlyId } from '../../../../types';
|
||||||
|
import { refreshTags, refreshTemplates } from '../handlers';
|
||||||
|
|
||||||
export async function listServices(request: FastifyRequest) {
|
export async function listServices(request: FastifyRequest) {
|
||||||
try {
|
try {
|
||||||
@@ -391,6 +392,13 @@ export async function getService(request: FastifyRequest<OnlyId>) {
|
|||||||
}
|
}
|
||||||
export async function getServiceType(request: FastifyRequest) {
|
export async function getServiceType(request: FastifyRequest) {
|
||||||
try {
|
try {
|
||||||
|
try {
|
||||||
|
await refreshTemplates();
|
||||||
|
await refreshTags();
|
||||||
|
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
services: await getTemplates()
|
services: await getTemplates()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user