fix: startContainer crée le conteneur via docker compose up si inexistant

This commit is contained in:
Manus Deploy
2026-07-24 13:37:10 +00:00
parent 03a6d55571
commit fe6ab4a2ff
2 changed files with 31 additions and 4 deletions

View File

@@ -482,7 +482,7 @@ router.post('/apps/:id/start', authMiddleware, async (req, res) => {
const app = config.apps.find((a) => a.id === req.params.id);
if (!app) return res.status(404).json({ error: 'Application non trouvée' });
const containerName = app.containerName || app.id;
const result = await startContainer(containerName);
const result = await startContainer(containerName, app.id);
res.json(result);
} catch (err) {
res.status(500).json({ error: err.message });