fix: storage for compose bp + debug on

This commit is contained in:
Andras Bacsai
2022-11-23 10:57:52 +01:00
parent d402fd5690
commit 530e7e494f
4 changed files with 9 additions and 7 deletions

View File

@@ -470,9 +470,9 @@ export const saveBuildLog = async ({
const addTimestamp = `[${generateTimestamp()}] ${line}`;
const fluentBitUrl = isDev ? process.env.COOLIFY_CONTAINER_DEV === 'true' ? 'http://coolify-fluentbit:24224' : 'http://localhost:24224' : 'http://coolify-fluentbit:24224';
if (isDev && !process.env.COOLIFY_CONTAINER_DEV) {
// if (isDev && !process.env.COOLIFY_CONTAINER_DEV) {
console.debug(`[${applicationId}] ${addTimestamp}`);
}
// }
try {
return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {
json: {