mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-27 22:36:06 +00:00
fix(cli): await concurrently result to ensure all services complete.
This commit is contained in:
@@ -58,12 +58,14 @@ export async function startAllServices(): Promise<void> {
|
||||
try {
|
||||
const concurrentServices = await getConcurrentServices()
|
||||
|
||||
concurrently(concurrentServices, {
|
||||
const { result } = concurrently(concurrentServices, {
|
||||
killOthersOn: ['failure', 'success'],
|
||||
restartTries: 0,
|
||||
prefix: 'name',
|
||||
prefixColors: ['cyan', 'green', 'magenta']
|
||||
})
|
||||
|
||||
await result
|
||||
} catch (error) {
|
||||
logger.error('Failed to start all services')
|
||||
logger.debug(`Error details: ${error}`)
|
||||
|
||||
Reference in New Issue
Block a user