mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-17 01:15:19 +00:00
fix(application): correct log path variable usage and update label syntax in getApplicationStats function
This commit is contained in:
@@ -664,11 +664,10 @@ export const rebuildRemoteApplication = async ({
|
|||||||
await execAsyncRemote(
|
await execAsyncRemote(
|
||||||
application.serverId,
|
application.serverId,
|
||||||
`
|
`
|
||||||
echo "\n\n===================================EXTRA LOGS============================================" >> $deployment.logPath;
|
echo "\n\n===================================EXTRA LOGS============================================" >> ${deployment.logPath};
|
||||||
echo "Error occurred ❌, check the logs for details." >> $deployment.logPath;
|
echo "Error occurred ❌, check the logs for details." >> ${deployment.logPath};
|
||||||
echo "${encodedContent}" | base64 -d >> "${deployment.logPath}";`,
|
echo "${encodedContent}" | base64 -d >> "${deployment.logPath}";`,
|
||||||
);
|
);
|
||||||
|
|
||||||
await updateDeploymentStatus(deployment.deploymentId, "error");
|
await updateDeploymentStatus(deployment.deploymentId, "error");
|
||||||
await updateApplicationStatus(applicationId, "error");
|
await updateApplicationStatus(applicationId, "error");
|
||||||
throw error;
|
throw error;
|
||||||
@@ -680,7 +679,7 @@ export const rebuildRemoteApplication = async ({
|
|||||||
export const getApplicationStats = async (appName: string) => {
|
export const getApplicationStats = async (appName: string) => {
|
||||||
const filter = {
|
const filter = {
|
||||||
status: ["running"],
|
status: ["running"],
|
||||||
label: ["com.docker.swarm.service.name=$appName"],
|
label: [`com.docker.swarm.service.name=${appName}`],
|
||||||
};
|
};
|
||||||
|
|
||||||
const containers = await docker.listContainers({
|
const containers = await docker.listContainers({
|
||||||
|
|||||||
Reference in New Issue
Block a user