mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 15:05:19 +00:00
fix: await build command in deployPreviewApplication function
- Updated the deployPreviewApplication function to await the getBuildCommand call, ensuring the command is fully constructed before execution. - This change improves the reliability of the deployment process by handling asynchronous command generation correctly.
This commit is contained in:
@@ -413,7 +413,7 @@ export const deployPreviewApplication = async ({
|
|||||||
appName: previewDeployment.appName,
|
appName: previewDeployment.appName,
|
||||||
branch: previewDeployment.branch,
|
branch: previewDeployment.branch,
|
||||||
});
|
});
|
||||||
command += getBuildCommand(application);
|
command += await getBuildCommand(application);
|
||||||
|
|
||||||
const commandWithLog = `(${command}) >> ${deployment.logPath} 2>&1`;
|
const commandWithLog = `(${command}) >> ${deployment.logPath} 2>&1`;
|
||||||
if (application.serverId) {
|
if (application.serverId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user